Pass Url-encoded parameters when creating OIC REST Connection
Content
Hello,
I am trying to access my client environment from OIC which requires an access token first.
I am able to retrieve the access token from Postman successfully. (See screenshot PostmanCall.png)
I have used the curl command generated from Postman but OIC does not understand the format --data-urlencode.
This is the curl command that postman sends :
curl -X POST 'https://<url of env>/oauth/v1/tokens' -H 'x-app-key: <app-key>' -H 'Accept: application/json' -H 'Authorization: Basic #base64[clientID:clientSecret]' -H 'Content-Type: application/x-www-form-urlencoded' --data-urlencode 'grant_type=password' --data-urlencode 'username=<username>' --data-urlencode 'password=<password>'
3