Coder Social home page Coder Social logo

tejashah88 / node-alexa-smapi Goto Github PK

View Code? Open in Web Editor NEW
13.0 6.0 3.0 158 KB

A node.js client library for using the Alexa Skill Management API.

License: MIT License

JavaScript 100.00%
alexa alexa-skill skill-management nodejs client-library smapi

node-alexa-smapi's Issues

Support for v1

@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?

Working example

Please provive an as-small-as-possible, but complete and working sample. And show how or where to get refreshToken, clientId and clientSecret.

Thanks.

Add testing

  • Add unit and integration tests
    • Vendor operations
    • Skill operations
    • Interaction model operations
    • Account linking operations
    • Skill enablement operations
    • Skill testing operations
      • Validation
      • Invocation
      • Simulation
    • intent request history
    • Skill certification operations
    • node-alexa-smapi Custom operations
    • node-alexa-smapi helper methods
    • node-alexa-smapi error scenarios
  • Add Travis CI integration
  • Add coveralls.io integration

Can't update Skill-Icons

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
`

Properly adding new endpoints

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:

  1. The tool is highly dependent on the fact that the formatting of the Alexa docs will not change.
  2. The library's code is a lot more complex and trying to analyze it directly would make more trouble than it's worth.
  3. It's hard to reliably test the tool itself, due to the above problems.

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.