This commit is contained in:
GotPPay
2017-11-28 14:36:59 +01:00
commit 86072a3279
7 changed files with 277 additions and 0 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();