All URIs are relative to http://localhost:3000/api/auth
| Method | HTTP request | Description |
|---|---|---|
| handle_stripe_webhook | POST /stripe/webhook |
handle_stripe_webhook()
- Bearer Authentication (bearerAuth):
import better_auth
from better_auth.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost:3000/api/auth
# See configuration.py for a list of all supported configuration parameters.
configuration = better_auth.Configuration(
host = "http://localhost:3000/api/auth" # Replace with your API server host
)
# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.
# Configure Bearer authorization: bearerAuth
configuration = better_auth.Configuration(
access_token = os.environ["BEARER_TOKEN"]
)
# Enter a context with an instance of the API client
with better_auth.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = better_auth.StripeApi(api_client)
try:
api_instance.handle_stripe_webhook()
except Exception as e:
print("Exception when calling StripeApi->handle_stripe_webhook: %s\n" % e)This endpoint does not need any parameter.
void (empty response body)
- Content-Type: Not defined
- Accept: application/json
| Status code | Description | Response headers |
|---|---|---|
| 400 | Bad Request. Usually due to missing parameters, or invalid parameters. | - |
| 401 | Unauthorized. Due to missing or invalid authentication. | - |
| 403 | Forbidden. You do not have permission to access this resource or to perform this action. | - |
| 404 | Not Found. The requested resource was not found. | - |
| 429 | Too Many Requests. You have exceeded the rate limit. Try again later. | - |
| 500 | Internal Server Error. This is a problem with the server that you cannot fix. | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]