I am initiating curl commands from the Windows command line. For some reason, this simple post request -->
curl -H “Content-Type: application/x-www-form-urlencode” -X POST -d “grant_type=authorization_code&client_id=[XXX]&client_secret=[YYY]&code=[ZZZZ]&redirect_uri=[the-url-of-my-app]” https://www.linkedin.com/oauth/v2/accessToken
is not working. Everything I put in square brackets are placeholders for, yes, the correct parameter values.
The error being returned by curl is:
{"error":"invalid_request","error_description":"A required parameter \"client_id\" is missing"}
Anyone who has suggests, please advise.
Aucun commentaire:
Enregistrer un commentaire