POST v1/oauth/accecssToken
Create a new authorization token, using the dealer login credentials, to import devices from 3rd party system to CLSS
Request Information
URI Parameters
None.
Body Parameters
TokenCredentialsDealer| Name | Description | Type | Additional information |
|---|---|---|---|
| grant_type | string |
None. |
|
| client_id | string |
None. |
|
| client_secret | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"grant_type": "sample string 1",
"client_id": "sample string 2",
"client_secret": "sample string 3"
}
application/xml, text/xml
Sample:
<TokenCredentialsDealer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Napco.NOC.Models"> <ClientId>sample string 2</ClientId> <ClientSecret>sample string 3</ClientSecret> <GrantType>sample string 1</GrantType> </TokenCredentialsDealer>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Token response
TokenResponseDealer| Name | Description | Type | Additional information |
|---|---|---|---|
| token_type | string |
None. |
|
| issued_at | string |
None. |
|
| client_id | string |
None. |
|
| access_token | string |
None. |
|
| expires_in | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"token_type": "sample string 1",
"issued_at": "sample string 2",
"client_id": "sample string 3",
"access_token": "sample string 4",
"expires_in": 1
}
application/xml, text/xml
Sample:
<TokenResponseDealer xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Napco.NOC.Models"> <AccessToken>sample string 4</AccessToken> <ClientId>sample string 3</ClientId> <ExpiresIn>1</ExpiresIn> <Issued>sample string 2</Issued> <TokenType>sample string 1</TokenType> </TokenResponseDealer>