Open sammillendo opened 3 years ago
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
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