Skip to content

A simple .NET Core library for handling skill mesaging to Alexa skills

License

Notifications You must be signed in to change notification settings

stoiveyp/Alexa.NET.SkillMessaging

Repository files navigation

Alexa.NET.SkillMessaging

A simple .NET Core library for handling skill mesaging to Alexa skills  

Gain access to Skill Messaging OAuth Token

var client = new AccessTokenClient(AccessTokenClient.ApiDomainBaseAddress);
var accessToken = await client.Send(clientId,clientSecret);
var oauthToken = accessToken.Token;

 

Send Message to Skill

var payload = new Dictionary<string, string>{ {"testKey", "testValue"} };

var messages = new Alexa.NET.SkillMessageClient(Alexa.NET.SkillMessageClient.EuropeEndpoint, oauthToken);
var messageToSend = new Alexa.NET.SkillMessaging.Message(payload,300);

var messageId = await messages.Send(messageToSend, userId);

 

Add support for Skill Messaging requests

 RequestConverter.RequestConverters.Add(new MessageReceivedRequestTypeConverter());

About

A simple .NET Core library for handling skill mesaging to Alexa skills

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Languages