Sha256: 53bc68cbcb831d4b9012c2e0ed324fd3d2c3f8963f0946f6ad941573f38549d7
Contents?: true
Size: 1.21 KB
Versions: 2
Compression:
Stored size: 1.21 KB
Contents
# PushbulletRuby ## Installation Add this line to your application's Gemfile: ```ruby gem 'pushbullet_ruby' ``` ## Usage ### Setup Puts your api-key into a token.json file formatted like this: ```ruby {"token": "your api-key here"} ``` And setup your client: ```ruby client = PushbulletRuby::Client.new(PushbulletRuby::Token.load) ``` ### List devices ```ruby client.devices ``` ### Update device informations ```ruby client.update_device( id: 'device id', params: { nickname: 'device name' } ) ``` ### List contacts ```ruby client.contacts ``` ### List subscriptions(channels) ```ruby client.subscriptions ``` ### Get recent channel pushes ```ruby client.recent_pushes('channel tag') ``` ### List pushes ```ruby client.pushes ``` ### Push You can send following list: - note - link - file ```ruby client.push_note( receiver: :device, identifier: 'devide id', params: { title: 'Title', body: 'Content' } ) ``` ## Contributing Bug reports and pull requests are welcome on GitHub at https://github.com/creends/pushbullet_ruby. ##### This gem is inspired by [washbullet](https://github.com/hrysd/washbullet)
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
pushbullet_ruby-1.0.3 | README.md |
pushbullet_ruby-1.0.2.1 | README.md |