amazon-advertising-api-php-sdk icon indicating copy to clipboard operation
amazon-advertising-api-php-sdk copied to clipboard

Where to run the authorization URL to request authorization and refresh tokens

Open sammillendo opened this issue 4 years ago • 0 comments

I'm trying to get a authorization and refresh tokens. According to the Amazon Ads API doc, I need the to substitute my values in the request:

curl \ -X POST \ -H "Content-Type:application/x-www-form-urlencoded;charset=UTF-8" \ --data "grant_type=authorization_code&code=AUTH_CODE&redirect_uri=YOUR_RETURN_URL&client_id=YOUR_CLIENT_ID&client_secret=YOUR_SECRET_KEY" \ https://api.amazon.com/auth/o2/token

I've replaced the parameter with my values, I want to know where to run the code, do I run it in the terminal or in the browser? Which part of the parameter should I run first, or do I copy and paste the whole parameter and run it at once?

Thanks for the help

sammillendo avatar Jun 07 '21 10:06 sammillendo