alexa-samples / skill-sample-python-fact-in-skill-purchases

Demonstrates how to use the new in-skill purchasing (ISP) features of Alexa skills by offering different packs of facts behind a purchase, and a subscription to unlock all of the packs at once.
Other
16 stars 13 forks source link

How to implement ISP samples #13

Closed DeeboyEdx closed 5 months ago

DeeboyEdx commented 5 months ago

The Readme provides directions on how to copy this skill into my account but doesn't seem to have instructions on how to implement the samples provided. Do I need to copy/paste the JSONs somewhere?

DeeboyEdx commented 5 months ago

Nevermind. Found it. https://developer.amazon.com/en-US/docs/alexa/smapi/in-skill-product-management-operations.html#create-isp Just had to wrap the objects in the sampe IPS JSONs in an object with it's key as "inSkillProductDefinition", and add another key-value pair for my vendor id before sending it via a POST request as described in the doc.