All input and output parameters are specified in JSON.
HTTP headers:
Content-Type: application/json Accept: application/json
Receiving an access token
Path: https://uauth.iponweb.com/oauth2/token/POST Arguments:
{ "grant_type": "password", "username" : "test", "password" : "testpassword", "scope" : "service_id=uslicer.iponweb.com" }Command:
curl --data 'grant_type=password&username=test&password=testpassword&scope=service_id=uslicer.iponweb.com' https://uauth.iponweb.com/oauth2/token/Response:
{ "token_type" : "Bearer", "scope" : "service_id=uslicer.iponweb.com", "access_token" : "<token>", "expires_in" : "3600" }Note: The following additional headers should be used in the command for receiving tokens from Python scripts:
headers={'Content-Type': 'application/x-www-form-urlencoded'}