Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/einguterwaran/pushbullet-python
A Python wrapper around the Pushbullet API to send different types of push notifications to your phone or/and computer.
https://github.com/einguterwaran/pushbullet-python
api-wrapper bullet push push-bullet push-notification push-notifications python
Last synced: about 1 month ago
JSON representation
A Python wrapper around the Pushbullet API to send different types of push notifications to your phone or/and computer.
- Host: GitHub
- URL: https://github.com/einguterwaran/pushbullet-python
- Owner: EinGuterWaran
- License: mit
- Created: 2022-01-14T07:54:29.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2022-01-16T01:32:07.000Z (almost 3 years ago)
- Last Synced: 2024-08-09T03:07:28.747Z (5 months ago)
- Topics: api-wrapper, bullet, push, push-bullet, push-notification, push-notifications, python
- Language: Python
- Homepage: https://pypi.org/project/pushbullet-python/
- Size: 33.2 KB
- Stars: 6
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# pushbullet-python
#### A Python wrapper around the Pushbullet API to send different types of push notifications to your phone or/and computer.## Installation
```commandline
pip3 install pushbullet-python
```
Required Package:
- [requests](https://requests.readthedocs.io/en/master/)## Usage Example
```python
import os
from pushbullet import API# set the API Class and link it to the api object
api = API()# now set the token
access_token = os.environ['access_token']
api.set_token(access_token)# now you can use the API Wrapper
# sending a note, arguments: title, message
api.send_note(
"Hello",
"How are you? This is a test from the Pushbullet Python API wrapper.")# sending a link, arguments: title, message, url
api.send_link("A Link", "Here is my website.", "http://www.lingeswaran.com")# sending a file, arguments: title, message, file name, file type, file url
api.send_file("An Example Image", "Check out the example image!",
"test_image.png", "image/png",
"https://dummyimage.com/600x400/000/fff")
```