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": { |
This is a sample APL for a quiz result and question.
It includes both the APL document and sample data sources.
### Variables ### | |
# Variables can be set by exporting environment variable TF_VAR_varname | |
variable keypair { | |
description = "SSH keypair to be used for VM authentication. The keypair should already be registered in FIWARE Lab Cloud." | |
} | |
variable image_id { | |
default = "7f2b4b3e-1cda-4e16-a09a-a97c600f78c0" |
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 locatedconst 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); |
'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 |
{ | |
"directives": [ | |
{ | |
"type": "Alexa.Presentation.APL.RenderDocument", | |
"token": "intro", | |
"document": { | |
"type": "APL", | |
"version": "1.0", | |
"theme": "dark", | |
"import": [], |
Downloads 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: