Sha256: da750024a96508cddf8d811976d7190128ef378f01c0feb87a83eb9668a7f328

Contents?: true

Size: 1.5 KB

Versions: 1

Compression:

Stored size: 1.5 KB

Contents

# Pushbullet
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.

## Installation

Add this line to your application's Gemfile:

    gem 'pushbullet'

And then execute:

    $ bundle

Or install it yourself as:

    $ gem install pushbullet

#### Setup Client

copy following content and paste into config/initializers/pushbullet.rb
	
	PUSHBULLET_API_KEY = 'YOUR_PUSHBULLET_KEY_HERE'

## Usage

	client = Pushbullet::Client.new(PUSHBULLET_API_KEY)

#### Push to own device

You can send following list:
- note
- link
- address
- list
- file


```ruby
# 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')
```

#### Push to Friend's device

You can send following list:
- note
- link
- address
- list

```ruby
# get json about friend list of Pushbullet
client.contacts
	
client.push_note_to('a@b.c', 'title', 'full message')
```
## Contributing

1. Fork it ( http://github.com/vajapravin/mvaayoo/fork )
2. Create your feature branch (`git checkout -b my-pushbullet`)
3. Commit your changes (`git commit -am 'Add some feature'`)
4. Push to the branch (`git push origin my-pushbullet`)
5. Create new Pull Request

Don't hesitate to write problems [vajapravin23@gmail.com]

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
pushbullet-0.0.1 README.md