Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

kilobyteno/oppe-for-python

Repository files navigation

oppe-for-python

codecov PyPI version Downloads License

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)

About

An API wrapper for Oppe written in Python

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •  

Languages