OAuthv2.0 error in example given

Not applicable

I was looking at the tutorial http://docs.apigee.com/api-services/tutorials/part-3-test-oauth-20-policies for checking OAuth. When i am sending a request its telling invalid client_id. I am using the key and secret that comes in the Premium Weather App by default.

0 2 75
2 REPLIES 2

HI @Sandeep Ranjan Mohanty

Are you trying it using curl command or some Rest client ? If curl, please follow the curl command provided in the link you are following. If its a rest client (say Postman), pass the client_id and client_secret in the body as x-www-form-urlencoded key value pairs. screen-shot-2016-02-25-at-100856-am.png

Or if you are using other clients, have a Content-Type header with application/x-www-form-urlencoded and pass the client_id=XXX&client_secret=YYYY in the request body

@Sandeep Ranjan Mohanty - any luck ? did that help ?