POST api/User/LoginWithDomain

Login by user name and password [customized]

Request Information

Body Parameters

LoginWithDomainModel
NameDescriptionTypeAdditional information
Domain

domain name

string

None.

Name

user [or IMEI]

string

None.

Pass

password

string

None.

AppId

APP Application Identifier

string

None.

PushId

string

None.

FcmId

string

None.

Language

User localism

string

None.

LoginType

Login type 0. stands user login

integer

None.

Version

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",
  "FcmId": "sample string 6",
  "Language": "sample string 7",
  "LoginType": 8,
  "Version": 9
}

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>
  <FcmId>sample string 6</FcmId>
  <Language>sample string 7</Language>
  <LoginType>8</LoginType>
  <Name>sample string 2</Name>
  <Pass>sample string 3</Pass>
  <PushId>sample string 5</PushId>
  <Version>9</Version>
  <Domain>sample string 1</Domain>
</LoginWithDomainModel>

Response Information

Resource Description

State corresponding states
0. The request is normal and returned correctly
1000. It means that the account doesn't exist

LoginWithDomainResult
NameDescriptionTypeAdditional information
LoginPage

login interface

string

None.

LoginType

Login type 0. stands user login 1. stands device login

integer

None.

AccessToken

this access Token

string

None.

Item

correspondent entities ,when user logs in return User information,device information is returned when the device is logged in

Object

None.

ThirdParty

Third party login information [general user login only valid]

Object

None.

WeChartAppId

string

None.

State

status code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "LoginPage": "sample string 1",
  "LoginType": 2,
  "AccessToken": "sample string 3",
  "Item": {},
  "ThirdParty": {},
  "WeChartAppId": "sample string 6",
  "State": 7
}

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>7</State>
  <AccessToken>sample string 3</AccessToken>
  <Item />
  <LoginType>2</LoginType>
  <ThirdParty />
  <WeChartAppId>sample string 6</WeChartAppId>
  <LoginPage>sample string 1</LoginPage>
</LoginWithDomainResult>