All URIs are relative to https://api.sendinblue.com/v3
Method | HTTP request | Description |
---|---|---|
CreateWebhook | Post /webhooks | Create a webhook |
DeleteWebhook | Delete /webhooks/{webhookId} | Delete a webhook |
GetWebhook | Get /webhooks/{webhookId} | Get a webhook details |
GetWebhooks | Get /webhooks | Get all webhooks |
UpdateWebhook | Put /webhooks/{webhookId} | Update a webhook |
CreateModel CreateWebhook(ctx, createWebhook) Create a webhook
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
createWebhook | CreateWebhook | Values to create a webhook |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
DeleteWebhook(ctx, webhookId) Delete a webhook
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
webhookId | int64 | Id of the webhook |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetWebhook GetWebhook(ctx, webhookId) Get a webhook details
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
webhookId | int64 | Id of the webhook |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetWebhooks GetWebhooks(ctx, optional) Get all webhooks
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
optional | *GetWebhooksOpts | optional parameters | nil if no parameters |
Optional parameters are passed through a pointer to a GetWebhooksOpts struct
Name | Type | Description | Notes |
---|---|---|---|
type_ | optional.String | Filter on webhook type | [default to transactional] |
sort | optional.String | Sort the results in the ascending/descending order of webhook creation | [default to desc] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
UpdateWebhook(ctx, webhookId, updateWebhook) Update a webhook
Name | Type | Description | Notes |
---|---|---|---|
ctx | context.Context | context for authentication, logging, cancellation, deadlines, tracing, etc. | |
webhookId | int64 | Id of the webhook | |
updateWebhook | UpdateWebhook | Values to update a webhook |
(empty response body)
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]