Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ created = client.create_webhook(
url="https://your-service.example/tidelight",
events=["research.job.completed", "research.job.failed"],
)
# Persist this securely; the server only returns a signing secret on create or rotation.
save_secret(created["signing_secret"])
signing_secret = created.get("signing_secret")
if not signing_secret:
raise RuntimeError("The create response did not include its one-time signing secret")
# TODO: Persist signing_secret with your approved secrets manager before
# finishing setup. Do not print it. It cannot be recovered by listing the endpoint.
deliveries = client.list_webhook_deliveries()
```

Expand Down
9 changes: 9 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,16 @@ name = "tidelight-sdk"
version = "0.1.0"
description = "Tidelight Intelligence Cloud Python client (unpublished)"
requires-python = ">=3.10"
readme = "README.md"
keywords = ["tidelight", "research", "market-intelligence", "webhooks"]
classifiers = ["Programming Language :: Python :: 3 :: Only"]
license = { text = "Proprietary" }

[project.urls]
Homepage = "https://tidelight.app/developers/packages/python"
Documentation = "https://dev.tidelight.app/api"
Repository = "https://github.com/TidelightOrg/tidelight/tree/main/sdk/python"
Issues = "https://github.com/TidelightOrg/tidelight/issues"

[tool.setuptools.packages.find]
where = ["src"]
Loading