Add contact to group

Endpoint: https://account.mobilesasa.com/oauth/token

The access_token returned from the response is the one added the Authorization header after the Bearer clause in the other endpoints.


# Headers Params Response
1 Content-Type: application/json

{
"grant_type":"client_credentials",
"client_secret":"your_app_client_secret",
"client_id":"your_app_client_id"
}

{
    "token_type": "Bearer",
    "expires_in": 3599,
    "access_token": "generated_access_token"
}
2 Accept: application/json
3 Authorization: Bearer access_token

Curl example:


curl -X POST \
  https://account.mobilesasa.com/oauth/token \
  -H 'Accept: application/json' \
  -H 'Content-Type: application/json' \
  -d '{
              "grant_type":"client_credentials",
              "client_secret":"your_client_id",
              "client_id":"your_client_secret"
     }'