Code Monkey home page Code Monkey logo

wx_open's Introduction

描述

本包是微信第三方开发者开发小程序和微信公众号用sdk包,封装了所有的第三方平台小程序和微信公众号用api

主要包含以下几个模块

(小程序)

  • 代码模板
  • 修改服务器地址
  • 成员管理
  • 代码管理
  • 微信登录
  • 模板设置
  • 基础信息设置
  • 开放平台账号管理
  • 插件管理

(公众号)

  • 代公众号发起网页授权
  • jssdk
  • 菜单管理
  • 带参数二维码
  • 微信登录
  • 获取媒体文件
  • 数据统计
  • 客服消息和模板消息

(通用)

  • 消息加解密

本包依赖redis数据库,用来存储各种token数据

demo参考 https://github.com/flyseamomo/wx_open_demo

使用方法:

//1.引入及初始化

var wx_open_app = require('wx_open_app')
var API = new wx_open_app(componentAppid, componentAppSecret, componentKey, componentToken, redisConfig)

//2.设置ComponentVerifyTicket(微信服务器每10分钟推送一次,在使用API之前必须设置)
API.setComponentVerifyTicket(ComponentVerifyTicket)

//3.获取pre_auth_code 及授权小程序(公众号)信息
var pre_auth_code = await API.getPreAuthCode()
let mp_info = await API.auth(auth_code)

//4.调用api
//设置小程序业务域名,appId为要设置的小程序appid
let res = await API.setDomain(appId, action, requestdomain, wsrequestdomain, uploaddomain, downloaddomain)

wx_open's People

Contributors

benvirus avatar flyseamomo avatar zqun avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

wx_open's Issues

如何调用,麻烦每个方法如何调写的清楚点吧

比如:var API = new wxapp_open(componentAppid, componentAppSecret, componentKey, componentToken, redisConfig)
这几个参数代表什么

代码模板
修改服务器地址
成员管理
代码管理
微信登录
模板设置
基础信息设置
开放平台账号管理
插件管理
(公众号)

代公众号发起网页授权
jssdk
菜单管理
带参数二维码
微信登录
获取媒体文件
数据统计
客服消息和模板消息
(通用)

消息加解密

这些如何调 参数是什么

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.