CURL related issues

Not able to get the access token by specifying Access token and Access secret via Curl.

please find the error I get as below:

(6) Could not resolve host: accesstoken 'client_secret' is not recognized as an internal or external command, operable program or batch file. C:\Program Files\cURL\bin>

please advise.

Thank you,

Regards,

Sreeni.

Solved Solved
0 4 882
1 ACCEPTED SOLUTION

Not applicable

There is a space in your command line before "accesstoken" that is causing the problem you're seeing.

View solution in original post

4 REPLIES 4

Not applicable

The curl command you used is needed to help diagnose the problem. However, if you are having problems with curl a good option is the Postman rest client extension to Chrome.

hi Mike,

good day.

Thank you for your response.

The command goes as below.

curl https://SREENI_S_P-test.apigee.net/oauth/client_c... accesstoken?grant_type=client_credentials -X POST -d 'client_id=n2qiSYYn8uckVvNcak3rWPU6Y6uGbq5i &client_secret=HrPzqSSMR95QQzuZ '

please advise.

Regards,

Sreenivas S P

Not applicable

There is a space in your command line before "accesstoken" that is causing the problem you're seeing.

Not applicable

Review the Apigee docs OAuth section, has information that might help-

http://apigee.com/docs/api-services/content/asking-tokens