alexa-js / alexa-app

A framework for Alexa (Amazon Echo) apps using Node.js
https://www.youtube.com/watch?v=pzM4jv7k7Rg
MIT License
1.03k stars 212 forks source link

APL Support ? #384

Open laurenceHR opened 5 years ago

laurenceHR commented 5 years ago

I've just noticed about APL https://developer.amazon.com/es/docs/alexa-presentation-language/apl-overview.html there are any way to use that with this library? I really love this lib and majority of my skills are built whit this library (alexa-app) Regards

HynesIP commented 5 years ago

+1

Trev-Lev commented 5 years ago

Is there a solution to this yet? I'm trying it now and coming across errors, but I can't tell if I am implementing the JSON for the directive incorrectly or if APL just doesn't work.

Trev-Lev commented 5 years ago

I just figured it out (for hosting on Heroku, that is) - I had to move the JSON files I was using for APL into my node_modules folder.

lazerwalker commented 5 years ago

If someone who's gotten this working has advice for how to improve support in this library, we'd love to see a PR! :)

steveandroulakis commented 5 years ago

Here's a code snippet that demonstrates the sending of an APL directive to screen-based devices, and how to respond to APL user events like TouchWrapper.

https://gist.github.com/steveandroulakis/ab7bffd87b6546f85abddf2f4f9a67cc

fbukevin commented 3 years ago

Here's a code snippet that demonstrates the sending of an APL directive to screen-based devices, and how to respond to APL user events like TouchWrapper.

https://gist.github.com/steveandroulakis/ab7bffd87b6546f85abddf2f4f9a67cc

It works for me. Thanks!