POST api/AuthorizeApp
Request Information
URI Parameters
None.
Body Parameters
AuthorizeAppRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| AppName | string |
Required |
|
| SecretKey | string |
Required |
Request Formats
application/json, text/json
Sample:
{
"AppName": "sample string 1",
"SecretKey": "sample string 2"
}
application/xml, text/xml
Sample:
<AuthorizeAppRequest xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <AppName>sample string 1</AppName> <SecretKey>sample string 2</SecretKey> </AuthorizeAppRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ReturnObjectOfAuthorizeAppResp| Name | Description | Type | Additional information |
|---|---|---|---|
| IsSuccess | boolean |
None. |
|
| Messages | Collection of string |
None. |
|
| ErrorCode | integer |
None. |
|
| Response | AuthorizeAppResp |
None. |
Response Formats
application/json, text/json
Sample:
{
"IsSuccess": true,
"Messages": [
"sample string 1",
"sample string 2"
],
"ErrorCode": 2,
"Response": {
"AuthToken": "sample string 1"
}
}
application/xml, text/xml
Sample:
<ReturnObjectOfAuthorizeAppResp xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<IsSuccess>true</IsSuccess>
<Messages>
<string>sample string 1</string>
<string>sample string 2</string>
</Messages>
<ErrorCode>2</ErrorCode>
<Response>
<AuthToken>sample string 1</AuthToken>
</Response>
</ReturnObjectOfAuthorizeAppResp>