Skip to main content

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.

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.

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-1.1.0.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

engagespot-1.1.0-py3-none-any.whl (4.4 kB view details)

Uploaded Python 3

File details

Details for the file engagespot-1.1.0.tar.gz.

File metadata

  • Download URL: engagespot-1.1.0.tar.gz
  • Upload date:
  • Size: 3.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for engagespot-1.1.0.tar.gz
Algorithm Hash digest
SHA256 27209ac5b1451fb02547985b35e37b514bb5bc215c214acd1c57a4bae0422ed5
MD5 0563393873ef6945ba596e23f2294344
BLAKE2b-256 f2a52744968ea71cac29682b1f90faf13612cc808f290f89c1c81ed68145d6f0

See more details on using hashes here.

File details

Details for the file engagespot-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: engagespot-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 4.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.6

File hashes

Hashes for engagespot-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 196809c3bca3c76585d8c9c144e538c69ed6af5661e97a0f7ce9b67b8684bfcf
MD5 bdf71d6f219c779c9a38a47575cd97ac
BLAKE2b-256 bdd4adb7d8804b3f5604a5c85cccc6f92bc3ce24544a249b5356ad89482036a2

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page