Skip to content

weixin-java-open【代小程序之微信登陆】 #410

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
binarywang opened this issue Dec 21, 2017 · 2 comments
Closed

weixin-java-open【代小程序之微信登陆】 #410

binarywang opened this issue Dec 21, 2017 · 2 comments

Comments

@binarywang
Copy link
Owner

code 换取 session_key

第三方平台开发者的服务器使用登录凭证 code 以及第三方平台的component_access_token 获取 session_key 和 openid。

请求方式:
https://api.weixin.qq.com/sns/component/jscode2session?appid=APPID&js_code=JSCODE&grant_type=authorization_code&component_appid=COMPONENT_APPID&component_access_token=ACCESS_TOKEN

参数说明:

参数 是否必须 说明
appid 是 小程序的AppID
js_code 是 登录时获取的 code
grant_type 是 填authorization_code
component_appid 是 第三方平台appid
component_access_token 是 第三方平台的component_access_token

@007gzs
Copy link

007gzs commented Jan 8, 2018

#420 已增加

@binarywang
Copy link
Owner Author

2.9.4.BETA版本已实现

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants