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! Go to Solution.
There is a space in your command line before "accesstoken" that is causing the problem you're seeing.
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
There is a space in your command line before "accesstoken" that is causing the problem you're seeing.
Review the Apigee docs OAuth section, has information that might help-
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |