PushBullet.py

samwell edited this page Feb 26, 2013 · 4 revisions
Clone this wiki locally

Usage

This script is only designed to push notes. To push, lists, addresses, files, or links, further implementation is needed.

-l, --list - List all devices the API Key has access to

-a, --all - Send a note to all devices.

-i, --id - Send a note to a specified device, can use device ID or the email associated with the device.

-t, --title - The title of the note

-m, --message - The message of the note

Use it with command line

List all devices

./PushBullet.py -l

Send a note to a specific device using the device id

./PushBullet.py -i 12345 -t "The push heard around the world" -m "The quick brown fox jumps over the lazy dog"

Send a note to a specific device using the device email

./PushBullet.py -i samjacob18@gmail.com -t "The push heard around the world" -m "The quick brown fox jumps over the lazy dog"

Send a note to multiple devices

./PushBullet.py -i 12345 -i 67890 -i 59303 -t "The push heard around the world" -m "The quick brown fox jumps over the lazy dog"

Send a note to all the devices your API Key has access too.

./PushBullet.py -a -t "The push heard around the world" -m "The quick brown fox jumps over the lazy dog"

Use it with Python

import PushBullet

note = {'id':[12345], 'title':"The push heard around the world", 'message':"The quick brown fox jumps over the lazy dog"}
send(note)