commit 44e30f7927bba1b520bb10c18a414b0abbed60be
parent 1d20931b12fc3a1d1b9ae0c989f17b2aba3923b1
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Wed, 24 Aug 2016 09:00:40 +0200
Update pushbullet.js
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/handlers/pushbullet.js b/handlers/pushbullet.js
@@ -15,8 +15,8 @@ module.exports = {
* @class pushbullet
* @constructor
*/
- var token = process.env.pushbullet_api
pushbulletSend: function (door_status){
+ var token = process.env.pushbullet_api
curl.request({ url: 'https://api.pushbullet.com/v2/pushes', method: 'POST', headers: { "Access-Token": 'token', "Content-Type": 'application/json' }, data: '{"channel_tag": "space-door", "body":"'+ door_status + '","title":"Door Status","type":"note"}'}, function (err, stdout, meta) {
if (err){
/**