tejashah88 / node-alexa-smapi Goto Github PK
View Code? Open in Web Editor NEWA node.js client library for using the Alexa Skill Management API.
License: MIT License
A node.js client library for using the Alexa Skill Management API.
License: MIT License
@tejashah88 do you have any thoughts on adding support for v1? I have made (private) changes to support v1 but not sure if it would be necessary to continue supporting v0 and how to tackle any backwards compatibility. Thoughts?
Please provive an as-small-as-possible, but complete and working sample. And show how or where to get refreshToken, clientId and clientSecret.
Thanks.
Hello,
The API Works fine, i can create and update skills and the interaction model.
But unfortunately i can't update icons.
i uploaded my new icon to Amazon S3. Made the URL Public. The Size are 108x108 & 512x512.
But if i try to update the icons, the update returns success, but the update is completly ignored.
Not only the update of the icons, also the update of other fields... if i comment out the icon stuff, the update is executed successfully, and the updates can be shown in the developer console.
`
var oTargetSkillManifest = await mySmapiClient.skills.getManifest(aConfigs[i].sSkillID, sStageDevelopment);
oTargetSkillManifest.manifest.publishingInformation.locales['de-DE'].name = sNewName;
oTargetSkillManifest.manifest.publishingInformation.locales['de-DE'].smallIconUri = sSmallIconUrl;
oTargetSkillManifest.manifest.publishingInformation.locales['de-DE'].largeIconUri = .sLargeIconUrl;
var oTargetSkill = await mySmapiClient.skills.update(aConfigs[i].sSkillID, sStageDevelopment, oTargetSkillManifest.manifest);
is it maybe an bug, or do i have to speficy/upload my images in a special way?
Kind Regards
Stefan
`
One of the issues that I can see while going forward is how to future-proof this library when new endpoints are being added. Currently we have the ability to make custom calls but that won't be enough as Amazon keeps on adding new endpoints.
One idea I have so far is an "API coverage" tool that scrapes the Alexa docs for request patterns and compares it to the internal library code and finally generates a table of endpoints that are not implemented yet. I've experimented with this in the node-meraki-dashboard library and aside from a few problems, it turned out to be quite successful.
The major problems as it seems is that:
These problems could make the tool quite brittle, but it would help in automating the process of checking for new endpoints every once in a while and manually adding them periodically.
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.