请求参数 | 必须 | 类型及范围 |
json返回结果
{ "success": true 参考 "data":object(参考) }
* grant_type说明:
1) grant_type为authorization_code时
请求参数 | 必须 | 类型及范围 | |
code | true | string | 调用authorize获得的code值。 |
redirect_uri | true | string | 回调地址,需要与注册应用里的回调地址一致。 |
2) grant_type为password时(*此登录方式只适用于明道深度合作公司,如有需要,请联系明道客服进行开通)
请求参数 | 必须 | 类型及范围 | |
p_signature | false | string | 企业网络ID,首次默认传空(用户多网络返回企业网络列表) |
username | true | string | 授权用户的用户名。 |
password | true | string | 授权用户的密码。 |
3) grant_type为refresh_token时
请求参数 | 必须 | 类型及范围 | |
refresh_token | true | string | 与授权令牌同时获取的刷新令牌。(有效期是14天) |
用户访问令牌有效期说明
未发布有效期 | 已发布有效期 |
1天 | 7天 |
{ "success": true "access_token": "D3KJ89YI4QYNJKA", "expires_in":"1234", "refresh_token":"C3KJ89YI4QYNJDD" }
关于错误返回值与错误代码,参见 错误代码说明