Python client for QwhaleNotifier
Project description
NotifierClient
install
$> pip install NotifierClient
Use example
from notifier_client import NotifierClient
app_token = "<Token>"
client = NotifierClient(app_token)
res = client.send_notification(
user_token="<USER_TOKEN>",
title="My first notification",
body="message body",
url="https://qwhale.com", # optional
data={"Extra": "data"} # optional {string: string}
)
print(res) # -> {"message": "ok"} or {"message": "Invalid Token."}
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
NotifierClient-0.1.1.tar.gz
(2.3 kB
view hashes)
Built Distribution
Close
Hashes for NotifierClient-0.1.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 667865c7a6fd692e9ba025772769ebda2334c340085a2d056d671ff73d2272a1 |
|
MD5 | 01a60298fee1fb3fdae94ab1a489218e |
|
BLAKE2b-256 | 70525e4295952c819e8de186c453c2090d48c56f942e00aa5a609b9b4c003a4f |