A Python API Wrapper for Oppe
Project description
oppe-for-python
An API wrapper for Oppe written in Python.
Installation
pip install oppe
Usage
Sending an event
from oppe import Oppe
from oppe.exceptions import EventRequestError
oppe = Oppe(api_token='insert-api-token-here', project_id="uuid-of-project")
try:
oppe.event(
channel_id="uuid-of-channel",
title="user-registered",
description="A new user has registered.",
emoji="👋",
data={
"user_id": 123,
},
)
except EventRequestError as e:
# Handle error
print(e)
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
oppe-0.2.3-py3-none-any.whl
(5.5 kB
view hashes)