Skip to main content

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.

Creating or updating a user

Before you can send a notification, you should create the user (recipient) profile in Engagespot.

from engagespot import Engagespot

client = Engagespot(api_key="ENGAGESPOT_API_KEY", api_secret="ENGAGESPOT_API_SECRET", data_region="us")

user_profile = {
    "name" : "Python User",
    "email" : "python@engagespot.co",
    "phoneNumber": "+1620000000"
}

response = client.create_or_update_user("user-identifier");

data_region can be either us or eu depending on your workspace data region

Triggering a workflow

The easiest way to send notifications in Engagespot is by creating message workflows in Engagespot console and trigger it using this Python library.

from engagespot import Engagespot

client = Engagespot(api_key="ENGAGESPOT_API_KEY", api_secret="ENGAGESPOT_API_SECRET", data_region="us")

send_request = {
    "notification": {
        "workflow":{
            "identifier":"welcome-message-workflow"
        }
    },
    "sendTo":{
        "recipients": ["user-identifier"]
    }
}
    
response = client.send(send_request)

Refer Engagespot REST API Docs to get the list of all supported parameters.

Detailed Guide

Read Engagespot docs to learn how to build and send notification workflows.

Metadata

Release files for engagespot 1.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for engagespot 1.1.0
File Size Uploaded
engagespot-1.1.0.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for engagespot 1.1.0
File Interpreter ABI Platform
engagespot-1.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 8.2 kB

Release files / engagespot-1.1.0.tar.gz

Download URL engagespot-1.1.0.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
27209ac5b1451fb02547985b35e37b514bb5bc215c214acd1c57a4bae0422ed5
BLAKE2b-256 checksum
How to use checksums
f2a52744968ea71cac29682b1f90faf13612cc808f290f89c1c81ed68145d6f0
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release files / engagespot-1.1.0-py3-none-any.whl

Download URL engagespot-1.1.0-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
196809c3bca3c76585d8c9c144e538c69ed6af5661e97a0f7ce9b67b8684bfcf
BLAKE2b-256 checksum
How to use checksums
bdd4adb7d8804b3f5604a5c85cccc6f92bc3ce24544a249b5356ad89482036a2
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/4.0.2 CPython/3.11.6

Release history Release notifications | RSS feed

This release

1.1.0 This release

2 release files

1.0.1

2 release files

1.0.0

2 release files

0.0.2

2 release files

0.0.1

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page