POST api/ThirdParty/ValidateThird

Third party login information

Request Information

Body Parameters

ThirdPartyInfo
NameDescriptionTypeAdditional information
ThirdID

id

string

None.

ThirdType

type

integer

None.

ThirdName

name

string

None.

ThirdImg

picture

string

None.

UserID

user id

integer

None.

LoginName

login name

string

None.

Password

password

string

None.

Language

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 status
0. Indicates success
1702. Indicates that a third party login is not bound

LoginResult
NameDescriptionTypeAdditional information
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:
{
  "LoginType": 1,
  "AccessToken": "sample string 2",
  "Item": {},
  "ThirdParty": {},
  "WeChartAppId": "sample string 5",
  "State": 6
}

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