Skip to content

功能概述 ​

根据Code获取微信用户的手机号,但是用户需要授权,否则微信不回返回用户信息。

注意事项

每个code只能使用一次

接口访问 ​

接口地址 ​

wechat/mini/code/mobile

请求方式 Method ​

POST

请求参数 ​

属性类型长度必填默认值说明
codestring32true临时登录凭证 code

返回值 ​

属性类型必填说明
tokenstringtrue用户身份令牌
languagestringtrue用户当前使用语言 zh-中文

返回示例 ​

{
    "response": {
        "mobile": "",
        "purePhoneNumber": "",
        "countryCode": ""
    },
    "requestId": "47d80de6-aaa1-40e0-99b0-8a411e8c1a5e"
}