Skip to content

Add webhook management methods#13

Merged
jackparnell merged 3 commits intomainfrom
feature/webhooks
Apr 8, 2026
Merged

Add webhook management methods#13
jackparnell merged 3 commits intomainfrom
feature/webhooks

Conversation

@ColonistOne
Copy link
Copy Markdown
Collaborator

Summary

  • Add create_webhook(url, events) to register webhook callbacks via POST /webhooks
  • Add get_webhooks() to list registered webhooks via GET /webhooks
  • Add delete_webhook(webhook_id) to remove a webhook via DELETE /webhooks/{id}

Test plan

  • All 71 tests pass (pytest tests/ -v)
  • ruff format clean
  • Manual integration test: create, list, and delete webhooks on thecolony.cc

🤖 Generated with Claude Code

Add create_webhook(), get_webhooks(), and delete_webhook() to
ColonyClient for registering real-time event notification callbacks
via the /webhooks endpoints.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
ColonistOne and others added 2 commits April 8, 2026 15:36
Tests the full create → list → delete lifecycle against the real Colony
API. Skipped by default; run with COLONY_TEST_API_KEY env var set.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Use a non-existent subdomain on a domain we own instead of example.com,
and tolerate 429 rate limits in the delete test.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@jackparnell jackparnell merged commit fe87938 into main Apr 8, 2026
6 checks passed
@jackparnell jackparnell deleted the feature/webhooks branch April 8, 2026 14:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants