What's new in Customer Journeys?

Connect and learn more!
Pass Url-encoded parameters when creating OIC REST Connection — Cloud Customer Connect
You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

Pass Url-encoded parameters when creating OIC REST Connection

Received Response
edited Aug 13, 2021 2:53PM in Data Integration 1 comment



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>'

Howdy, Stranger!

Log In

To view full details, sign in.


Don't have an account? Click here to get started!