question

Barclays Dev avatar image
Barclays Dev asked

Access token for proactive events through web service

How can I get access token for proactive events through web service using proxy in java?

proactive events
5 comments
10 |5000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Could you provide a more specific example of what you're trying to do?

0 Likes 0 ·
Barclays Dev avatar image Barclays Dev Joseph Kesselman ·

I am trying this curl command :

curl -i -k -v -x "proxy-details" -XPOST -H 'Content-Type: application/x-www-form-urlencoded' -d 'grant_type=client_credentials&client_id=XXXX&client_secret=YYYY&scope=alexa::proactive_events' https://api.amazon.com/auth/o2/token

but it throws 400 Bad request error -

{"error_description":"The request has an invalid parameter : scope","error":"invalid_scope"}

Could you please help me identifying the issue?

0 Likes 0 ·
Does that request work without going through a proxy ?
0 Likes 0 ·
Show more comments

0 Answers