POST api/ThirdParty/ValidateThird
第三方登录信息
Request Information
Body Parameters
ThirdPartyInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| ThirdID |
id |
string |
None. |
| ThirdType |
类型 |
integer |
None. |
| ThirdName |
名称 |
string |
None. |
| ThirdImg |
图片 |
string |
None. |
| UserID |
用户 id |
integer |
None. |
| LoginName |
登录名 |
string |
None. |
| Password |
密码 |
string |
None. |
| Language |
语言 |
string |
None. |
| AppId |
APP Id |
string |
None. |
Request Formats
application/json, text/json
Sample:
{
"ThirdID": "sample string 1",
"ThirdType": 2,
"ThirdName": "sample string 3",
"ThirdImg": "sample string 4",
"UserID": 5,
"LoginName": "sample string 6",
"Password": "sample string 7",
"Language": "sample string 8",
"AppId": "sample string 9"
}
application/xml, text/xml
Sample:
<ThirdPartyInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 9</AppId> <Language>sample string 8</Language> <LoginName>sample string 6</LoginName> <Password>sample string 7</Password> <ThirdID>sample string 1</ThirdID> <ThirdImg>sample string 4</ThirdImg> <ThirdName>sample string 3</ThirdName> <ThirdType>2</ThirdType> <UserID>5</UserID> </ThirdPartyInfo>
Response Information
Resource Description
State状态
0. 表示成功
1702. 表示未绑定第三方登录
| Name | Description | Type | Additional information |
|---|---|---|---|
| LoginType |
登录类型 0. 表示用户登录 1. 表示设备登录 |
integer |
None. |
| AccessToken |
本次访问Token |
string |
None. |
| Item |
相应实体,用户登录时返回用户信息,设备登录时返回设备信息 |
Object |
None. |
| ThirdParty |
第三方登录信息[一般仅用户登录有效] |
Object |
None. |
| State |
状态码 |
integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"LoginType": 1,
"AccessToken": "sample string 2",
"Item": {},
"ThirdParty": {},
"State": 5
}
application/xml, text/xml
Sample:
<LoginResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel"> <State>5</State> <AccessToken>sample string 2</AccessToken> <Item /> <LoginType>1</LoginType> <ThirdParty /> </LoginResult>