PushBullet's API enables developers to push to devices that have installed the PushBullet Android app. Authentication is provided by a user's API key, found in their Account Settings. By using an API key, users can allow third party software built on this API without needing to provide their Google account and password.
gem 'pushbullet'
copy following content and paste into config/initializers/pushbullet.rb
PUSHBULLET_API_KEY = 'YOUR_PUSHBULLET_KEY_HERE'
client = Pushbullet::Client.new(PUSHBULLET_API_KEY)
You can send following list:
- note
- link
- address
- list
- file
# get json about own device list
client.devices
client.push_note(DEVICE_ID, 'title', 'message')
client.push_file(DEVICE_ID, 'File Name', 'path/to/file')
You can send following list:
- note
- link
- address
- list
# get json about friend list of Pushbullet
client.contacts
client.push_note_to('[email protected]', 'title', 'full message')
- Fork it ( http://github.com/vajapravin/pushbullet/fork )
- Create your feature branch (
git checkout -b my-pushbullet
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-pushbullet
) - Create new Pull Request
Don't hesitate to write problems [[email protected]]