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

Create class-based version of webhook decorator #22

@pydanny

Description

@pydanny

Rather than use decorators on functions, allow users to implement via classes.

Sample API that I'm not happy with so I'm still thinking about it

class Basic(BaseWebhook):

    def send(wife: Object, husband: Object):
        return {"husband": husband, "wife": wife}

    def recorder(self):
        # Call out to persistence

basic = Basic(url, encoding, timeout, custom_headers, signing_secret)
basic.send(husband, wife)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions