POST token

Request Token

Request Information

URI Parameters

None.

Body Parameters

NameDescriptionTypeAdditional information
grant_type

Grant Type

GrantTypeEnum

There are three supported grant_types:

0. accessbykey is used for methods where there is no information about username and password.If grant_type= accessbykey and user is sent than we still have validation for user

1. userpassword is used for getting the token to have access for methods logged user

2. facebook

3. biometric

username

Email of user

string

None.

password

User password

string

None.

accesskey

Ask LogBuy to obtain a Key to gain access

string

None.

countryId

Country Id (optional)

string

None.

Request Formats

application/x-www-form-urlencoded

Sample:
grant_type=userpassword&username=sample_user_name&password=sample_password&accesskey=sample_access_key

Response Information

NameDescriptionTypeAdditional information
access_token

Use this token for authorization.

string

Authorization is required for all methods.

token_type

Type of token

string

bearer

expires_in

The remaining lifetime of the authorization code

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "access_token": "sample string 1",
  "token_type": "sample string 2",
  "expires_in": 3
}