Hookshot
  • Introduction
  • Basics
    • What are Webhooks?
  • Getting Started
    • Installation
    • Hosted Management Pages
    • Embeddable Management Components
  • Miscellaneous
    • Demo Application
Powered by GitBook
On this page

Was this helpful?

  1. Getting Started

Installation

Installing Hookshot into your application is very straight forward. All you need is your Hookshot API token, which can be found on the Security page in your dashboard

We currently have clients for the following languages, however Hookshot can be accessed via REST API if we do not have a client for your language.

Python

pip install hookshothq

In your application:

import hookshot

hookshothq.api_key = os.getenv("HOOKSHOT_API_TOKEN")

# Create an Event

hookshot.Event.create(
    event="order.created",
    realm=current_context.user_id,
    payload={
        "id": "o_1234",
        "value": "100000",
        "item_count": 4,
        "recurring": False,
    }
)

The "payload" attribute is the content which will be used as the body of your webhook when it is delivered to the end user.

PreviousWhat are Webhooks?NextHosted Management Pages

Last updated 4 years ago

Was this helpful?