Revert "Bilal step3"

This commit is contained in:
Bilal
2017-12-03 18:49:50 +01:00
committed by GitHub
parent c179e5e876
commit 118ab329d9
34 changed files with 263 additions and 6980 deletions

14
lambda.js Normal file
View File

@@ -0,0 +1,14 @@
var alexa = require("alexa-app");
var find = require("find-my-iphone");
var app = new alexa.app();
app.launch(function(request, response) {
find("me@icloud.com", "mypassword", "iPhone", function() {
response.say("OK").send();
});
// because this is an async handler
return false;
});
// connect to lambda
exports.handler = app.lambda();