| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| appid | 是 | string | 业务透传过来,应用appid |
| secret | 是 | string | 应用秘钥 |
| grant_type | 是 | string | 获权类型, 固定填 client_credential |
| 参数名 | 类型 | 说明 |
|---|---|---|
| access_token | string | access_token |
| expires_in | int | access_token有效期 |
| refresh_token | string | refresh_token 刷新access_token时使用 |
| error_code | int | 错误码 |
| error_msg | string | error_code非0时的错误消息 |
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| appid | 是 | string | 业务透传过来,应用appid |
| secret | 是 | string | 应用秘钥 |
| code | 是 | string | 授权码,authcode |
| grant_type | 是 | string | 获权类型, 固定填 authorization_code |
| 参数名 | 类型 | 说明 |
|---|---|---|
| access_token | string | access token |
| expires_in | int | access token有效期 |
| refresh_token | string | refresh token 刷新access token时使用 |
| openid | string | openid |
| unionid | string | unionid |
| scope | string | 本次授权范围 |
| orig_acnt_type | int | (需要应用具备该权限才会返回)账号原始类型(1 QQ; 2 微信;) |
| error_code | int | 错误码 |
| error_msg | string | error_code非0时的错误消息 |
| 参数名 | 必选 | 类型 | 说明 |
|---|---|---|---|
| appid | 是 | string | 业务透传过来,应用appid |
| openid | 否 | string | 用户openid。仅刷新用户级token需要 |
| refresh_token | 是 | string | 用户的refresh_token |
| sign |