stoiveyp / alexa.net.notifications Goto Github PK
View Code? Open in Web Editor NEWA simple .NET Core library for handling and sending notifications within Alexa skills
License: MIT License
A simple .NET Core library for handling and sending notifications within Alexa skills
License: MIT License
Hi, I'm trying to follow step by step this intresting article in your blog: https://www.imacode.ninja/2018/02/09/requiring-assistance-aws-iot-alexa-push-notifications-net-core
but during the first copy and paste test inside my skill I retrive this error.
Below the code:
var client = new NotificationClient(
NotificationClient.NorthAmericaEndpoint,
input.Context.System.ApiAccessToken);
var display = new DisplayInfo();
display.Content.Add(new DisplayContent {
Title="Assistance Requested",
Body="Assistance has been requested",
Toast = new ContentItem("Someone needs help"),
Locale = "en-US" });
var spoken = new SpokenInfo();
spoken.Content.Add(new SpokenText("en-US", "please help"));
var reference = "messageuser-" + DateTime.UtcNow.ToString("yyyyMMddHHmmss");
var notify = await client.Create(
display,
spoken,
reference,
DateTime.Now.AddSeconds(30)
);
Output from CloudWatch Log:
One or more errors occurred. (The authentication token is not valid.): AggregateException
at System.Threading.Tasks.Task`1.GetResultCore(Boolean waitCompletionNotification)
at lambda_method(Closure , Stream , Stream , LambdaContextInternal )
at Alexa.NET.NotificationClient.Create(CreateUpdateRequest request)
Any suggestion?
In the Skill Permission tab I don't see any Notification Capabilities. Where I can find it?
Regards
Andrea
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.