POST token

Authenticate using OAuth2's "client_credentials" grant type. See: http://aaronparecki.com/articles/2012/07/29/1/oauth2-simplified#application-access

Request Information

URI Parameters

None.

Body Parameters

The API application's name in the client_id field, and the application's secret in the client_secret field.

ClientCredentials
NameDescriptionTypeAdditional information
grant_type

string

None.

client_id

string

None.

client_secret

string

None.

Request Formats

application/x-www-form-urlencoded

Sample:
grant_type=client_credentials&client_id=exampleuser:exampleapiname&client_secret=@#!@$#KCkjasdfkj

application/json, text/json

Sample:
{
  "grant_type": "client_credentials",
  "client_id": "exampleuser:exampleapiname",
  "client_secret": "@#!@$#KCkjasdfkj"
}

Response Information

Resource Description

An OAuth2 bearer token.

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.

Response Formats

application/json, text/json

Sample:
{
  "access_token": "dGhpcyBpcyBhbiBhY2Nlc3MgdG9rZW4hIUAjQCEjIUA="
}