Awesome
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());