Skip to content

121770958/wechat-open-node-sdk

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 

Repository files navigation

wechat-open

微信开放平台SDK 微信登录 补充微信登录其他接口

Usage

npm i wechat-open -S
const {WechatLogin}= require('wechat-open')

const wechat_login = new WechatLogin(AccessKeyId,AccessKeySecret)

wechat_login.getAccessToken (code)    =>promise

wechat_login.getUserInfo (accessToken, openId)   =>promise

wechat_login.auth (access_token, openid)   =>promise

wechat_login.refreshToken (refresh_token)   =>promise

new WechatLogin(AccessKeyId,AccessKeySecret)

  • AccessKeyId <string> 必填,阿里云颁发给用户的访问服务所用的密钥ID。
  • AccessKeySecret <string> 必填,AccessKeySecret

构造方法,传入配置对象。

const {WechatLogin}= require('wechat-open')

const wechat_login = new WechatLogin(AccessKeyId,AccessKeySecret)

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published