alexwhitman / node-pushbullet-api

PushBullet API module for Node.js
165 stars 36 forks source link

Push to all devices #15

Closed hectorlee closed 9 years ago

hectorlee commented 9 years ago

Based on the pushbullet API, the device iden is optional. If no device iden is present then the push is sent to all devices. Would it be possible to add that feature?

brantje commented 9 years ago

You can use an empty devicesParams object.

  var deviceParams = {};
      pusher.note(deviceParams, msg.title, msg.message, function(error, response) {
        // response is the JSON response from the API
      });
alexwhitman commented 9 years ago

Thanks @brantje - I'll update the documentation with that information when I get a chance.

hectorlee commented 9 years ago

Thanks @brantje