GET api/token/get_token

Use api_key and password to generate token

Request Information

URI Parameters

NameDescriptionTypeAdditional information
Password

Password MD5(KEY + AppId + Timestamp)

string

None.

AppId

AppId

integer

None.

Timestamp

UNIX Timestamp

integer

None.

Response Information

Resource Description

Return AccessToken

TokenResult
NameDescriptionTypeAdditional information
Result

Result

TokenOutputDto

None.

Code

Status Code

integer

None.

Message

Error Message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "Result": {
    "UserId": 1,
    "CustomerName": "sample string 2",
    "AccessToken": "sample string 3",
    "Expire": 4
  },
  "Code": 1,
  "Message": "sample string 2"
}

application/xml, text/xml

Sample:
<TokenResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/NewGPS2012.OpenApi.Models.ResponseModels">
  <Code>1</Code>
  <Message>sample string 2</Message>
  <Result>
    <AccessToken>sample string 3</AccessToken>
    <CustomerName>sample string 2</CustomerName>
    <Expire>4</Expire>
    <UserId>1</UserId>
  </Result>
</TokenResult>