alexwhitman / node-pushbullet-api

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

Link does not support body #31

Closed Redsandro closed 6 years ago

Redsandro commented 6 years ago
PushBullet.link(deviceParams, name, url, callback)

The PushBullet API supports body for all (i.e. link) pushes pushes, but the node-pushbullet-api does not, as far as the documentation tells me.

grantholle commented 6 years ago

You're right.

A temporary workaround would be to call PushBullet.push(deviceParams, object, callback), which is the underlying method for all of the link, note, etc methods.

push(deviceParams, {
  type: 'link',
  title: title,
  url: url,
  body: body
}, callback);

I have a pending PR that I'm waiting to see if it gets merged, after that I could fix this