Python library for communicating with Engagespot REST API.
Project description
This is the official Python library for communicating with Engagespot REST API. Send multi-channel notifications from your python app.
Installation
pip install engagespot-python
Prerequisites
You need Engagespot API KEY and API SECRET from your dashboard to get started. If you don't have one, just get one for free.
Sending a notification
from engagespot import Engagespot
client = Engagespot(api_key="ENGAGESPOT_API_KEY", api_secret="ENGAGESPOT_API_SECRET")
send_request = {
"notification": {
"title":"Test from Python library🔥"
},
"recipients":["uid_123456"]
}
response = client.send(send_request)
Refer Engagespot REST API Docs to get the list of all supported parameters.
Creating or updating a user
user_profile = {
"name" : "Python User",
"email" : "python@engagespot.co"
}
response = client.create_or_update_user("pythonuser2");
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
engagespot-0.0.1.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for engagespot-0.0.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c6fb044d1279864b6c8fe33689e49561cf66073f91695a7eb084207da45dba4 |
|
MD5 | f5def5981e985e79c324e437e0dc9f4c |
|
BLAKE2b-256 | 8da0c76384f9664c7d96ed9d13544208c528b13085fc832766dbf11088ac7ff8 |