POST api/daytour/2b/gettoken

获取token

Request Information

URI Parameters

None.

Body Parameters

DayTour2BTokenReqContract
NameDescriptionTypeAdditional information
account

账户

string

None.

password

密码

string

None.

Request Formats

application/json, text/json

Sample:
{
  "account": "sample string 1",
  "password": "sample string 2"
}

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'DayTour2BTokenReqContract'.

Response Information

Resource Description

获取token

ReturnResultOfDayTour2BTokenRespContract
NameDescriptionTypeAdditional information
data

DayTour2BTokenRespContract

None.

code

状态码:100成功,其他自定义

integer

None.

message

提示消息

string

None.

Response Formats

application/json, text/json

Sample:
{
  "data": {
    "token": "sample string 1",
    "expire_in": 2
  },
  "code": 1,
  "message": "sample string 2"
}