commit 1d20931b12fc3a1d1b9ae0c989f17b2aba3923b1
parent 49edcd7ae477a762a9bfb43f91fed8d4f8ccb4f4
Author: Marcel <MTRNord@users.noreply.github.com>
Date: Wed, 24 Aug 2016 08:50:56 +0200
Update pushbullet.js
Diffstat:
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/handlers/pushbullet.js b/handlers/pushbullet.js
@@ -15,8 +15,9 @@ module.exports = {
* @class pushbullet
* @constructor
*/
+ var token = process.env.pushbullet_api
pushbulletSend: function (door_status){
- curl.request({ url: 'https://api.pushbullet.com/v2/pushes', method: 'POST', headers: { "Access-Token": 'z02rQPOZVBlSkW9pfHgKvaQvBTuXbaTt', "Content-Type": 'application/json' }, data: '{"channel_tag": "space-door", "body":"'+ door_status + '","title":"Door Status","type":"note"}'}, function (err, stdout, meta) {
+ 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){
/**
* Fired when an error occurs...
@@ -28,4 +29,4 @@ module.exports = {
}
});
}
-};
-\ No newline at end of file
+};