I couldn't find any examples. Here is what I have so far.
1. Go to
https://ifttt.com/myrecipes/personal and create a new recipe
2. For 'this' select the 'Maker' channel
3. Choose the only trigger: "Receive a web request"
4. Name it "my_test"
5. For 'that' select what you would like to have happen. I picked email.
6. Set it up.
Then on the Bone run:
#!/usr/bin/env node
var request = require('request');
var qs = require('querystring');
var event = 'my_test';
var key = XXXXX;
var string = {value1: 'My', value2: 'Test', value3: 'BeagleBone'};
var url = '
https://maker.ifttt.com/trigger/' + event + '/with/key/' + key +
'?' + qs.stringify(string);
console.log(url);
request(url, function (error, response, body) {
if (!error && response.statusCode == 200) {
console.log(body);
} else {
console.log("error=" + error + " response=" + JSON.stringify(response));
}
});
After a couple of minutes an email should show up in response to the script. You can pass three values. They have to be named value1, value2 and value3.
I'm working on an example going the other way.
--Mark
You received this message because you are subscribed to a topic in the Google Groups "BeagleBoard" group.
To unsubscribe from this topic, visit
https://groups.google.com/d/topic/beagleboard/lz8nzTfU-us/unsubscribe.
To unsubscribe from this group and all its topics, send an email to
beagleboard...@googlegroups.com.