GET api/miniprogramcodetoopenidservices?uid={uid}&code={code}
[小程序]--交换code服务
请求信息
URI 参数
Name | Description | Type | Additional information |
---|---|---|---|
uid | integer |
Required |
|
code | string |
Required |
Body 请求体 参数
None.
响应消息
内容 描述
4011 未配置相关数据 4012 获取openid 失败
CxccApiResponseBaseOfWeChatOpenIDResponseName | Description | Type | Additional information |
---|---|---|---|
data | WeChatOpenIDResponse |
None. |
|
code | integer |
None. |
|
msg | string |
None. |
响应示例
application/json, text/json
Sample:
{ "data": { "session_key": "sample string 1", "expires_in": 2, "openid": "sample string 3", "errcode": "sample string 4", "errmsg": "sample string 5" }, "code": 1, "msg": "sample string 2" }
image/png
Sample:
Sample not available.
image/jpg
Sample:
Sample not available.