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
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.2.tar.gz
(3.4 kB
view hashes)
Built Distribution
Close
Hashes for engagespot-0.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 010449313cd420255128b6ed6e6c1c192b1dc6b9ee6584e845fc2b4acb8e5828 |
|
MD5 | 52fbeca66310fff055785dde04a16680 |
|
BLAKE2b-256 | 4aeca62fe0ff202874e4c8e3a8513451297bbb77acd6fdccdf8621a3ae7a0fde |