This is a sample APL for a quiz result and question.
It includes both the APL document and sample data sources.
- Save the JSON file
- Go to https://developer.amazon.com/alexa/console/ask/displays and import the JSON file
{ | |
"type": "APL", | |
"version": "1.1", | |
"import": [ | |
{ | |
"name": "alexa-layouts", | |
"version": "1.1.0" | |
} | |
], | |
"mainTemplate": { |
{ | |
"document": { | |
"type": "APL", | |
"version": "1.0", | |
"theme": "dark", | |
"import": [], | |
"resources": [], | |
"styles": {}, | |
"layouts": { | |
"ResponsiveSplashLayout": { |
{ | |
"directives": [ | |
{ | |
"type": "Alexa.Presentation.APL.RenderDocument", | |
"token": "intro", | |
"document": { | |
"type": "APL", | |
"version": "1.0", | |
"theme": "dark", | |
"import": [], |
This is a sample APL for a quiz result and question.
It includes both the APL document and sample data sources.
const express = require('express'); | |
const bodyParser = require('body-parser'); | |
const handler = require('./index').handler; | |
function CreateHandler(handler) { | |
return (req, res) => { | |
handler(req.body, null, (err, result) => { | |
if (err) { | |
return res.status(500).send(err); |
Talk to Alexa skills running on your local machine. Stop waiting for Lambda deployments. Debug step-by-step.
index.js
file containing your ASK SDK NodeJS skill handler code (usually in skill-name/lambda/custom
)server.js
to the same folder where index.js
is locatedDownloads all sections of the online documentation available at https://developer.amazon.com/public/solutions/alexa/alexa-skills-kit/docs/alexa-skills-kit-interface-reference and converts it to eBook.
pip3 install beautifulsoup4 requests
I hereby claim:
To claim this, I am signing this object:
FROM node:6 | |
# Should run as non-root user but currently can't make it to work behind a reverse proxy. Alternatives are: | |
# 1) Change source to show a different websocket port than the one listened: https://github.com/xwiki-labs/cryptpad/issues/42 | |
# 2) Tweak reverse proxy to rewrite GET /api/config responses | |
# 3) Expose server on port 80 within Docker container <-- simplest approach selected | |
# Create directories | |
RUN mkdir /data \ | |
&& mkdir -p /usr/src/app \ |
'use strict'; | |
var Zap = { | |
get_session_info: function(bundle) { | |
/* | |
Argument: | |
bundle.request.url: <string> | |
bundle.request.headers: <object> | |
bundle.request.params: <object> # this will be mapped into the querystring |