untitled notebook

node v6.17.1
version: 3.0.0
endpointsharetweet
require("request") const request = require("request-promise") var options = { uri: 'https://s3-us-west-2.amazonaws.com/alexa-skill-oncall/oncall.json', headers: { 'User-Agent': 'Request-Promise' }, json: true // Automatically parses the JSON string in the response }; function normalize(teamNameSlot){ switch (teamNameSlot) { case teamNameSlot.includes("engagement"): return "ava-engagement"; break; case teamNameSlot.includes("skills"): return "ava-skills"; break; default: return "ava"; } } exports.endpoint = function(request, response) { return "hello" }
Loading…

no comments

    sign in to comment