flask-ask
flask-ask copied to clipboard
Adjusted in-skill-purchase samples to support all regions where ISP is available
ISPs are now also available in regions other than en-US. Namely, GB, DE and JP.
Following, samples/purchase/model.py
will work fine for en-US but fail in these new regions. This is because the variables apiEndpoint
and language
are fixed. However, querying https://api.amazonalexa.com
will return a 403 response if the request is from an European user. We can use the appropriate values from the request to resolve this.