Skip to content

A small library to help you use the Alexa Shopping Kit in your skill

License

Notifications You must be signed in to change notification settings

stoiveyp/Alexa.NET.ShoppingActions

Repository files navigation

Alexa.NET.ShoppingActions

A small library to help you use the Alexa Shopping Kit in your skill

Add Request/Response Support

	ShoppingKit.Add();

Add directive to add a product to users basket

using Alexa.NET.ShoppingActions
...
var directive = new StartConnectionDirective(new AddToShoppingCart("ASIN"), "token");
skillResponse.Response.Directives.Add(directive);

Add directive to buy a product

using Alexa.NET.ShoppingActions
...
var directive = new StartConnectionDirective(new BuyShoppingProducts("ASIN"), "token");
skillResponse.Response.Directives.Add(directive);

Handle Response

Add Request Handler support

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

About

A small library to help you use the Alexa Shopping Kit in your skill

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages