Stack Overflow: A New Way for Developers to Get Support for Alexa

Now you can find Alexa-specific tags and topics in the AWS Collective on Stack Overflow. Ask questions and get help from badged experts and the Alexa developer community!

question

Peacock Cove, LLC avatar image
Peacock Cove, LLC asked

Where can one find a PYTHON example of 'skill-demo-list-access' ?

I'm trying to write a simple skill in python to access a custom Alexa shopping list by name have the skill say what the items are on the list. I cannot find any examples close to what I would like my skill to do that are written in python. The Amazon example 'skill-demo-list-access' comes close but it is not using python.

Where can one find a complete python example to access user's custom Alexa shopping list? Thanks.

alexa skills kitskillalexaaccount linkinglist api
10 |5000

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

1 Answer

Peacock Cove, LLC avatar image
Peacock Cove, LLC answered

HOORAY!!! I finally found an answer after a week's worth of searching. Thank you very very much to the unnamed person that posted it. One can go here http://design-interviews.blogspot.com/2018/06/alexa-skill-shopping-list-python.html to see how it's done in Python. The access part of the code is complete but one will have to work with it to get it integrated into a skill but at least the shopping list can be retrieved.

For instance one will need to import urllib and json and change the references to urlib2.Request to urllib.request.Request. A few minor things like that but if a beginner like me can get it working then anyone can.

Wouldn't it be nice if Amazon linked a Python example to their Python documentation on accessing the shopping list instead of providing an example in Node.js code? Just saying.


10 |5000

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