Authentication

To communicate with our APIs, you will need an OAuth token with provided client ID and client secret, to get them, contact Valentin Kao (valentin.kao@unabiz.com).
UnaConnect API uses access tokens to identity the user who is performing the different queries. The access tokens that we provide are conformed to the OAuth2.0 protocol by using AWS Cognito. You will need to use the following endpoint : https://auth.unaconnect.io

The /oauth2/token?grant_type=client_credentials endpoint gets the user's tokens and only supports HTTPS POST.
For more information on the specification see Token Endpoint.

Authorization - MANDATORY
Base64Encode(client_id:client_secret) - If the client was issued a secret, the client must pass its client_id and client_secret in the authorization header through Basic HTTP authorization. The secret is Basic.
Content-Type - MANDATORY
Must always be application/x-www-form-urlencoded.

Request
POST https://auth.unaconnect.io/oauth2/token?grant_type=client_credentials
Content-Type='application/x-www-form-urlencoded'
Authorization= 'Basic ***iMWl0NmY2M6ajIyYTJ***:****HRjYm9yZGtucjZhZ3J***' 
Response
HTTP/1.1 200 OK
Content-Type: application/json
{
 "access_token":"eyJz9sdfsdfsdfsd",
 "token_type":"Bearer",
 "expires_in":3600
}
It will return the access_token with its expiration date and its value. You will need to provide this access_token in the Authorization Header of your future requests.