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.158.85/rest-gateway/rest/api/v1/auth/token",
    "data": {
      "grant_type": "client_credentials",
      "json": true
    }
  },
  "header": {
    "server": "Apache-Coyote/1.1",
    "content-type": "application/json",
    "content-length": "203",
    "date": "Mon, 26 Jun 2017 14:44:40 GMT",
    "connection": "close"
  },
  "status": 200,
  "text": "{\"access_token\":\"VEtOLVNBTXFhMmI1YThkYTUtMDY3MC00NjVhLWJiMTItYTY1NGFmYjg3MGY1\",\"refresh_token\":\"UkVUS04tU0FNcWE3NWE2YmZiZS03ZGM0LTQ5MjMtOWIzNS1jODcwMTU3MzMzNDA=\",\"token_type\":\"Bearer\",\"expires_in\":43200}"
}