授权接入-请求签名
URL:/authorization/signature?client_id={client_id}&grant_type={grant_type}
请求方式:GET
参数 |
说明 |
Authorization |
数字签名(生成规则:base64(hmac-sha1(client_secret,client_secret+client_id+timestamp))) |
TimeStamp |
当前时间戳(单位:秒) |
参数:
名称 |
必选 |
类型 |
说明 |
client_id |
true |
char |
平台发放给第三方应用的令牌 |
grant_type |
true |
char |
授权模式,此处的值固定为"client_credentials" |
响应:
名称 |
类型 |
说明 |
status |
int |
状态 |
msg |
char |
返回信息 |
access_token |
char |
访问令牌 |
expires_in |
char |
调用凭证超时时间(单位:秒) |
返回的结果示例:
成功返回:
{
"access_token": "e79fb748c3c8ab532a8fcf2da53ae54d",
"expires_in": 86400
}
失败返回:
{
"status": <ErrorCode>,
"msg": <ErrorMessage>
}