GET xuner/{platform}/oauth/authorize
登陆, 获取access_token
请求信息
URI 参数
| 名称 | 描述 | 类型 | 附加信息 |
|---|---|---|---|
| platform |
授权平台 |
string |
Required |
Body 参数
授权请求
AuthRequest| 名称 | 描述 | 类型 | 附加信息 |
|---|---|---|---|
| DbId |
账套ID |
string |
无。 |
| UserId |
用户ID |
string |
无。 |
| Password |
用户密码 |
string |
无。 |
| mobile |
手机 |
string |
无。 |
| name |
真实姓名 |
string |
无。 |
| openId |
微信openId |
string |
无。 |
| isWxMini |
是否微信小程序 |
string |
无。 |
| Platform |
平台id |
string |
无。 |
| domain |
域id |
string |
无。 |
请求格式
application/json, text/json
样例:
{
"DbId": "",
"UserId": "",
"Password": "",
"mobile": "",
"name": "",
"openId": "",
"isWxMini": "",
"Platform": "",
"domain": ""
}
响应信息
资源描述
登陆, 获取access_token
gXopResponseOfAuthData| 名称 | 描述 | 类型 | 附加信息 |
|---|---|---|---|
| data | AuthData |
无。 |
|
| desc |
错误信息 |
string |
无。 |
| result |
响应代码 1 成功 1011 令牌失效 0或其它 请求错误 |
integer |
无。 |
响应格式
application/json, text/json
样例:
{
"data": {
"token": ""
},
"desc": "",
"result": 0
}