This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Arrow = require('arrow'); | |
var launchTxt = "Welcome to Hello Axway Alexa Skill"; | |
var AlexaAppHandler = Arrow.API.extend({ | |
group: 'alexa', | |
path: '/api/alexaapphandler', | |
method: 'POST', | |
description: 'this is an api that shows how to handle requests from the Alexa Skill Voice server', | |
parameters: { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// add at top | |
var http = require("http"); | |
// In the Case IntentRequest switch statement , add this as new case | |
case "AddToListIntent": | |
console.log("We are going to add to List - AddToListIntent"); | |
console.log("this is value" + req.body.request.intent.slots.item.value); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var Arrow = require('arrow'); | |
var https = require("https"); | |
var oauthSignature = require('oauth-signature'); | |
// your appdirect host | |
var appdirecthost = 'testappcelerator.appdirect.com'; | |
var AppDirectHandler = Arrow.API.extend({ | |
group: 'appdirecthandler', | |
path: '/api/appdirecthandler', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
'use strict'; | |
const AWS = require('aws-sdk'); | |
exports.handler = (event, context, callback) => { | |
console.log('Received event:', event); | |
console.log('event.clickType = '+event.clickType); | |
if(event.clickType === "SINGLE") { | |
console.log('Single click detected'); |