Get Token

GET a token from the NSP server for the provided user

POST https://<NSP Server>/rest-gateway/rest/api/v1/auth/token

Request:

{
  "grant_type": "client_credentials"
}

Response:

{
  "req": {
    "method": "POST",
    "url": "https://135.121.156.109/rest-gateway/rest/api/v1/auth/token",
    "data": {
      "grant_type": "client_credentials",
      "json": true
    },
    "headers": {
      "user-agent": "test",
      "content-type": "application/json",
      "authorization": "Basic U0FNcWE6NTYyMFNhbSE="
    }
  },
  "header": {
    "server": "Apache-Coyote/1.1",
    "content-type": "application/json",
    "content-length": "203",
    "date": "Wed, 27 Sep 2017 04:59:08 GMT",
    "connection": "close"
  },
  "status": 200,
  "text": "{\"access_token\":\"VEtOLVNBTXFhNzdjMjkyZTMtNjAzMi00NWQ5LWIwNzEtNzg4Y2QzNzJjOGZj\",\"refresh_token\":\"UkVUS04tU0FNcWFiNDdmMzdiMS0zYTkzLTRkY2EtYWFiMy0xNTFjZGY4ZDlkNzk=\",\"token_type\":\"Bearer\",\"expires_in\":43200}"
}