HubSpot webhook message model
Project description
HubSpot web hooks message models
Models for messages that HubSpot sends as web hook calls to your integrations, written as msgspec models.
Why
It's easier to operate on objects with parsed properties, and the models themselves are missing from HubSpot client.
How
Incoming messages are lists of events, each of which is either related to a single object or an association between objects.
Message can be parsed with the following code:
import msgspec.json
from hubspot_webhook_model import Message
data: bytes # request body
model = msgspec.json.decode(data, type=Message)
Request signatures should be verified using the raw body
Caveats
- Messages contain events related to a single event, which can be user action or one of the internal HubSpot mechanisms. They are typically related to a single object, but not always.
- Events in a message are not ordered. propertyChange enevts may appear before creation events.
- The model only works with the new style generic webhook subscriptions.
- Only a subset of objects is included. Feel free to create Pull Requests with additional models as needed.
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file hubspot_webhook_model-0.2.0.tar.gz.
File metadata
- Download URL: hubspot_webhook_model-0.2.0.tar.gz
- Upload date:
- Size: 16.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
dee55a2a5db8d64f78a48414649910339477d48c37637d1fc01656221aac58ed
|
|
| MD5 |
2466c0da72569da1b94003e13074701a
|
|
| BLAKE2b-256 |
7bbfafa62d146fe2f3df7173620f5661fc073a57331e65e8765e96adf527e708
|
File details
Details for the file hubspot_webhook_model-0.2.0-py3-none-any.whl.
File metadata
- Download URL: hubspot_webhook_model-0.2.0-py3-none-any.whl
- Upload date:
- Size: 2.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.5.25
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
566731d94d4ca6f68ba28f609ffc84eb928e8a10236c544c3a369c24b6bb10a2
|
|
| MD5 |
c6d737014dbf62db9550f50623b3c2df
|
|
| BLAKE2b-256 |
059006286e115cc6ec32b56750e576ff96af0c6fe40e8544d6b7b6cefa676c4f
|