0.01
No commit activity in last 3 years
No release in over 3 years
Ruby client of Pushbullet API.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

Runtime

>= 0
~> 1.8.0
 Project Readme

Ruby Pushbullet API

Build Status Code Climate Gem Version Codacy Badge

This library is an implementation of Pushbullet API

Feel free to contribute 😄

NOTE: This is not production ready (yet).

Installation

gem install ruby-pushbullet

Configuration

You can get your api token from Account Settings

Pushbullet.api_token = 'YOUR_API_TOKEN'

Usage

Contact

# Get all contacts
Pushbullet::Contact.all

# create contact
contact = Pushbullet::Contact.create('Name', 'example@mail.com')
contact.name = 'Another name'
contact.save # update

Device

# Get all devices
devices = Pushbullet::Device.all

# create device
device = Pushbullet::Device.create('Device Name', 'stream')
device.nickname = 'Another name'
device.save #update

Push

# 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)

Channel

TODO...

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request