Method
fetch_webhook_with_token
(
self,
webhook_id: int,
token: str,
*,
session: Session,
)
Source from the content-addressed store, hash-verified
| 373 | return self.request(route, session=session, auth_token=token) |
| 374 | |
| 375 | def fetch_webhook_with_token( |
| 376 | self, |
| 377 | webhook_id: int, |
| 378 | token: str, |
| 379 | *, |
| 380 | session: Session, |
| 381 | ) -> WebhookPayload: |
| 382 | route = Route('GET', '/webhooks/{webhook_id}/{webhook_token}', webhook_id=webhook_id, webhook_token=token) |
| 383 | return self.request(route, session=session) |
| 384 | |
| 385 | |
| 386 | class _WebhookContext(threading.local): |
Tested by
no test coverage detected