POST api/OpenApi/GetToken

获取授权

Request Information

URI Parameters

None.

Body Parameters

account 登录账号 pwd 登录密码

GetToken
NameDescriptionTypeAdditional information
account

用户名/手机号/邮箱

string

None.

pwd

密码

string

None.

Request Formats

application/json, text/json

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

application/xml, text/xml

Sample:
<GetToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Goodwe.Ops.OpenApi.Models">
  <account>sample string 1</account>
  <pwd>sample string 2</pwd>
</GetToken>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.