Hookshot
Search…
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

1
pip install hookshothq
Copied!
In your application:
1
import hookshot
2
3
hookshothq.api_key = os.getenv("HOOKSHOT_API_TOKEN")
4
5
# Create an Event
6
7
hookshot.Event.create(
8
event="order.created",
9
realm=current_context.user_id,
10
payload={
11
"id": "o_1234",
12
"value": "100000",
13
"item_count": 4,
14
"recurring": False,
15
}
16
)
Copied!
The "payload" attribute is the content which will be used as the body of your webhook when it is delivered to the end user.
Last modified 7mo ago
Copy link
Contents
Python