Sha256: b49df364bc383589d5f3df5171efd1b197615860f4ed913fc3f9165f8b8866b7

Contents?: true

Size: 1.54 KB

Versions: 9

Compression:

Stored size: 1.54 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(
    device_id: 'device id',
    params: {
        nickname: 'device name'
    }
)
```
### List contacts
```ruby
client.contacts
```
### List chats
```ruby
client.chats
```
### Create chat
```ruby
client.create_chat(
    params: {
        email: 'target email'
    }
)
```
### 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,
    id: 'target id',
    params: {
        title: 'Title',
        body: 'Content'
    }
)
```
### Sms
```ruby
client.sens_sms(
    user_id: 'user id',
    device_id: 'device id',
    params: {
        conversation_iden: 'target phone number',
        message: '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

9 entries across 8 versions & 2 rubygems

Version Path
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/tdiary-5.1.5/vendor/bundle/ruby/3.0.0/gems/pushbullet_ruby-1.1.4/README.md
tdiary-5.1.6 vendor/bundle/ruby/2.7.0/gems/pushbullet_ruby-1.1.4/README.md
tdiary-5.1.5 vendor/bundle/ruby/3.0.0/gems/pushbullet_ruby-1.1.4/README.md
tdiary-5.1.2 vendor/bundle/ruby/2.6.0/gems/pushbullet_ruby-1.1.4/README.md
tdiary-5.1.1 vendor/bundle/ruby/2.6.0/gems/pushbullet_ruby-1.1.4/README.md
pushbullet_ruby-1.1.4 README.md
tdiary-5.0.8 vendor/bundle/gems/pushbullet_ruby-1.1.3/README.md
pushbullet_ruby-1.1.3 README.md
pushbullet_ruby-1.1.2 README.md