engagespot-0.0.2
توضیحات
Python library for communicating with Engagespot REST API.
| ویژگی | مقدار |
|---|---|
| سیستم عامل | OS Independent |
| نام فایل | engagespot-0.0.2 |
| نام | engagespot |
| نسخه کتابخانه | 0.0.2 |
| نگهدارنده | [] |
| ایمیل نگهدارنده | [] |
| نویسنده | Anand |
| ایمیل نویسنده | - |
| آدرس صفحه اصلی | https://github.com/Engagespot/engagespot-python |
| آدرس اینترنتی | https://pypi.org/project/engagespot/ |
| مجوز | - |
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](https://portal.engagespot.co) to get started. If you don't have one, just get one for free.
# Sending a notification
```python
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](https://documentation.engagespot.co/docs/rest-api) to get the list of all supported parameters.
# Creating or updating a user
```python
user_profile = {
"name" : "Python User",
"email" : "python@engagespot.co"
}
response = client.create_or_update_user("pythonuser2");
```
نیازمندی
| مقدار | نام |
|---|---|
| >=2.23.0 | requests |
زبان مورد نیاز
| مقدار | نام |
|---|---|
| >=3.6 | Python |
نحوه نصب
نصب پکیج whl engagespot-0.0.2:
pip install engagespot-0.0.2.whl
نصب پکیج tar.gz engagespot-0.0.2:
pip install engagespot-0.0.2.tar.gz