hi Team,
We are trying to use the API to pull events data and since the tokens expire often we would like to Login and then get the required tokens as mentioned in the document. In the obtaining tokens section.
We are trying to use the steps 4 and 5. Am able to refresh the token and get access token and get the details am looking for when am already aware of the refresh token first time. Here since we are trying to build a script using the API calls, we need to get the CSRF token, session key and then using them get the authorization code which inturn gives the refresh and access tokens.
But am not able to get the CSRF token and session key itself and when am giving the username , password and clientId , it always throws me below error.
{
"extra": null,
"message": "Invalid Request body"
}
Can someone help me what exactly i might be doing wrong here. Am testing it from Postman. Base url is
https://apigw-eucentral2.central.arubanetworks.com/oauth2/authorize/central/api/login?client_id=XXXXXXXXXXXXXXXX
Aruba Central API Reference Guide (arubanetworks.com)
Any help is much appreciated!
Thanks in Advance!
------------------------------
Sreedhar Sri
------------------------------