Skip to content

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

Closed

Description

@binarywang

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

Activity

  1. 007gzs commented on Jan 8, 2018

    @007gzs

    #420 已增加

  2. binarywang commented on Jan 12, 2018

    @binarywang
    OwnerAuthor

    2.9.4.BETA版本已实现

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

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions