POST api/User/LoginWithDomain
Login by user name and password [customized]
Request Information
Body Parameters
LoginWithDomainModel| Name | Description | Type | Additional information |
|---|---|---|---|
| Domain |
域名 |
string |
None. |
| Name |
用户名 [或IMEI] |
string |
None. |
| Pass |
密码 |
string |
None. |
| AppId |
APP应用标识 |
string |
None. |
| PushId |
推送Id |
string |
None. |
| Language |
用户语方言 |
string |
None. |
| LoginType |
登录类型 0. 表示用户登录 |
integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"Domain": "sample string 1",
"Name": "sample string 2",
"Pass": "sample string 3",
"AppId": "sample string 4",
"PushId": "sample string 5",
"Language": "sample string 6",
"LoginType": 7
}
application/xml, text/xml
Sample:
<LoginWithDomainModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ParModel"> <AppId>sample string 4</AppId> <Language>sample string 6</Language> <LoginType>7</LoginType> <Name>sample string 2</Name> <Pass>sample string 3</Pass> <PushId>sample string 5</PushId> <Domain>sample string 1</Domain> </LoginWithDomainModel>
Response Information
Resource Description
State 对应状态
0. 表示请求正常,正确返回
1000. 表示账户不存在
| Name | Description | Type | Additional information |
|---|---|---|---|
| LoginPage |
登录界面 |
string |
None. |
| 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:
{
"LoginPage": "sample string 1",
"LoginType": 2,
"AccessToken": "sample string 3",
"Item": {},
"ThirdParty": {},
"State": 6
}
application/xml, text/xml
Sample:
<LoginWithDomainResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.AppApi.Models.ResModel"> <State>6</State> <AccessToken>sample string 3</AccessToken> <Item /> <LoginType>2</LoginType> <ThirdParty /> <LoginPage>sample string 1</LoginPage> </LoginWithDomainResult>