Skip to content

A small library to allow Alexa.NET skills to interact with the Alexa Web Api for Games

License

Notifications You must be signed in to change notification settings

stoiveyp/Alexa.NET.WebApiGames

Repository files navigation

Alexa.NET.WebApiGames

A small library to allow Alexa.NET skills to interact with the Alexa Web Api for Games

Check to see if HTML is supported on the device

using Alexa.NET.WebApiGames;
...
skillRequest.HTMLSupported();

Start a Web API Game

using Alexa.NET.WebApiGames;
...
skillResponse.Response.Directives.Add(new StartDirective(uri, data))

Send a message to your game

using Alexa.NET.WebApiGames;
...
skillResponse.Response.Directives.Add(new HandleMessageDirective(message))

Receive a message from your game

using Alexa.NET.WebApiGames;
MessageRequest.AddToRequestConverter();
...
if request.Request is MessageRequest messageRequest{
    var msg = messageRequest.Message;
}

About

A small library to allow Alexa.NET skills to interact with the Alexa Web Api for Games

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages