question

Kumarasivan avatar image
Kumarasivan asked

Python example for enrollment query

My enrollment query is throwing HTTP 400 Bad request. I think I am not setting the HTTP header properly. I am using urllib3 for sending the request. Can you give a python code example please?

http = urllib3.PoolManager()

resp = http.request(

"GET",

"https://api.amazonalexa.com/v1/users/~current/skills/~current/inSkillProducts/amzn1.ask.skill.1b84f946-6188-476f-9834-6c2be3663446",

headers={

"Host": endpoint,

"Accept-Language": locale,

"Authorization": accesstoken

}

)

alexa skills
10 |5000

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

0 Answers