响应格式说明
返回结果
1 2 3 4 5 6 7 8 9 10  | { "code": "2000", "message": "认证成功", "messageArgs": [], "data": { "access_token": "*******************************", "expires_in": 3600, "refresh_token":"*******************************" } }  | 
返回参数
参数名  | 
中文名称  | 
参数类型  | 
描述  | 
|---|---|---|---|
access_token  | 
认证令牌  | 
String  | 
认证后可信任的Token凭证。  | 
expires_in  | 
令牌过期时间  | 
Integer  | 
  | 
refresh_token  | 
刷新令牌  | 
String  | 
在access_token使用后,用于刷新access_token的token凭证。该令牌一般持续数小时或数天。  | 
code  | 
返回值  | 
String  | 
数据正常返回“2000”,如果发生错误,会返回对应的错误码。  | 
message  | 
返回信息  | 
String  | 
返回信息,正确请参照示例。接口请求发生错误时的详细信息参照错误码说明。  | 
messageArgs  | 
返回信息参数  | 
List  | 
目前为空值,作扩展用途。  | 
data  | 
数据字典  | 
dict  | 
传回信息的字典。  | 
错误码
错误场景  | 
返回代码  | 
错误信息  | 
|---|---|---|
client_id缺失  | 
8101  | 
缺少参数client_id  | 
authorization_code缺失  | 
8102  | 
缺少参数authorization_code  | 
grant_type缺失  | 
8103  | 
缺少参数grant_type  | 
client_secret缺失  | 
8104  | 
缺少参数client_secret  | 
redirect_uri缺失  | 
8107  | 
缺少参数redirect_uri  | 
client_id无效  | 
8201  | 
参数client_id非法  | 
authorization_code无效  | 
8202  | 
参数authorization_code非法  | 
grant_type无效  | 
8203  | 
参数grant_type非法  | 
client_secret无效  | 
8204  | 
参数client_secret非法  | 
redirect_uri无效  | 
8207  | 
参数redirect_uri非法  | 
父主题: 获取access_token