This library is an implementation of Pushbullet API
Feel free to contribute 😄
NOTE: This is not production ready (yet).
gem install ruby-pushbullet
You can get your api token from Account Settings
Pushbullet.api_token = 'YOUR_API_TOKEN'
# Get all contacts
Pushbullet::Contact.all
# create contact
contact = Pushbullet::Contact.create('Name', '[email protected]')
contact.name = 'Another name'
contact.save # update
# Get all devices
devices = Pushbullet::Device.all
# create device
device = Pushbullet::Device.create('Device Name', 'stream')
device.nickname = 'Another name'
device.save #update
# Id can be an device id or a email
Pushbullet::Push.create_note(id, title, body)
Pushbullet::Push.create_link(id, title, url, body)
Pushbullet::Push.create_address(id, name, address)
Pushbullet::Push.create_list(id, title, items)
Or directly from a device or a contact
me = Pushbullet::Contact.me
me.push_note(title, body)
# or...
device = Pushbullet::Device.all.first
device.push_link(title, link, body)
TODO...
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request