Interface EventDestinationsService
public interface EventDestinationsService
Event Destinations Service
-
Method Summary
Modifier and TypeMethodDescriptioncreate(EventDestinationCreateRequest eventDestinationCreateRequest) Create a new webhookvoidDelete an existing webhookGet a webhookList webhooksupdate(String eventDestinationId, EventDestination eventDestination) Update an existing webhook
-
Method Details
-
list
List webhooksList all webhooks for a given app as specified by the App ID.
- Parameters:
appId- The unique ID of the app. You can find this on the [Sinch Dashboard](https://dashboard.sinch.com/convapi/apps). (required)- Returns:
- EventDestinationsListResponse
- Throws:
ApiException- if fails to make API call
-
create
EventDestination create(EventDestinationCreateRequest eventDestinationCreateRequest) throws ApiException Create a new webhookCreates a webhook for receiving callbacks on specific triggers. You can create up to 5 webhooks per app.
- Parameters:
eventDestinationCreateRequest- Required. The Webhook to create (required)- Returns:
- EventDestination
- Throws:
ApiException- if fails to make API call
-
delete
Delete an existing webhookDeletes a webhook as specified by the webhook ID.
- Parameters:
eventDestinationId- The unique ID of the webhook. (required)- Throws:
ApiException- if fails to make API call
-
get
Get a webhookGet a webhook as specified by the webhook ID.
- Parameters:
eventDestinationId- The unique ID of the webhook. (required)- Returns:
- EventDestination
- Throws:
ApiException- if fails to make API call
-
update
EventDestination update(String eventDestinationId, EventDestination eventDestination) throws ApiException Update an existing webhookUpdates an existing webhook as specified by the webhook ID.
- Parameters:
eventDestinationId- The unique ID of the webhook. (required)eventDestination- Required. The Webhook to update (required)- Returns:
- EventDestination
- Throws:
ApiException- if fails to make API call
-