SwiftOnLambda icon indicating copy to clipboard operation
SwiftOnLambda copied to clipboard

Simplify example by using AlexaSkillsKit

Open choefele opened this issue 7 years ago • 2 comments

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"

choefele avatar Oct 30 '16 19:10 choefele