When a new user subscribes to your service we'll send you a POST request with this data to the URL that you register for the event `new-subscription` in the dashboard.
(
body: Subscription, token: Annotated[str, Security(bearer_scheme)]
)
| 20 | |
| 21 | @app.webhooks.post("new-subscription") |
| 22 | def new_subscription( |
| 23 | body: Subscription, token: Annotated[str, Security(bearer_scheme)] |
| 24 | ): |
| 25 | """ |
| 26 | When a new user subscribes to your service we'll send you a POST request with this |
| 27 | data to the URL that you register for the event `new-subscription` in the dashboard. |
| 28 | """ |
| 29 | |
| 30 | |
| 31 | client = TestClient(app) |
no test coverage detected
searching dependent graphs…