Skip to content

Instantly share code, notes, and snippets.

@lheritage
lheritage / alexaapphandler.js
Created February 7, 2018 15:17
Hello Alexa API Builder
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: {
@lheritage
lheritage / Alexa Demo Snippet
Last active January 31, 2018 18:45
This is snippets of code for the Alexa Demo built in meetups
// 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);
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',
@lheritage
lheritage / index.js
Created November 1, 2017 21:37
Amazon IoT Button - API Builder
'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');