A small library to help you use the Alexa Shopping Kit in your skill
ShoppingKit.Add();
using Alexa.NET.ShoppingActions
...
var directive = new StartConnectionDirective(new AddToShoppingCart("ASIN"), "token");
skillResponse.Response.Directives.Add(directive);
using Alexa.NET.ShoppingActions
...
var directive = new StartConnectionDirective(new BuyShoppingProducts("ASIN"), "token");
skillResponse.Response.Directives.Add(directive);
using Alexa.NET.ShoppingActions
switch(skillRequest.Request)
{
case SessionResumedRequest resumed:
var shoppingResult = ShoppingKit.ResultFromSessionResumed(resumed);
if(shoppingResult != null)
{
//TODO: error logic here
}
...
};
For more information on how to use these actions within a skill - please visit the Amazon Alexa documentation
https://developer.amazon.com/en-US/docs/alexa/alexa-shopping/implement-shopping-actions.html