POST api/Authentication/GetTokenAlt
Requests a Token for use in making calls to the WebAPI. The token will be set for 6 months. If the password does not match -or the Client is not marked as active - then the Token will contain an authentication = false.
Request Information
URI Parameters
None.
Body Parameters
Credentials
GetTokenRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| UserID | string |
None. |
|
| Password | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserID": "sample string 1",
"Password": "sample string 2"
}
application/xml, text/xml
Sample:
<GetTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MarketplaceDataContracts.Request"> <Password>sample string 2</Password> <UserID>sample string 1</UserID> </GetTokenRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
a Token upon authentication.
AuthToken| Name | Description | Type | Additional information |
|---|---|---|---|
| Token | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"Token": "sample string 1"
}
application/xml, text/xml
Sample:
<AuthenticationController.AuthToken xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/MarketplaceAPI.Controllers"> <Token>sample string 1</Token> </AuthenticationController.AuthToken>