Skip to content

Simplify example by using AlexaSkillsKit #2

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

choefele
Copy link

As an exercise, I rewrote the example to use AlexaSkillsKit to simplify parsing and generating Alexa messages. The functionality is still the same, but I think the sample is easier to read and understand. Let me know if this is useful

I tested the sample with swift build && cat ../../AlexaSkillsKit/Tests/AlexaSkillsKitTests/launch_request.json | .build/debug/swiftcommand

  • echo function enabled: returns whatever was passed in to swiftcommand
  • greetResponse enabled: returns standard response with "Hello from Swift"

@algal
Copy link
Owner

algal commented Oct 30, 2016

This looks very cool. Will look at it tonight or tomorrow. I'm a bit flattened now trying to catch up with other stuff.

One question: did you successfully test this update to greetResponse with the Alexa Console? With an Echo device?

@choefele
Copy link
Author

I tested swiftcommand with both the Alexa console as well as Echosim.io

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants