Constructor and Description |
---|
WebhookUpdater(String pathChatServiceSid)
Construct a new WebhookUpdater.
|
Modifier and Type | Method and Description |
---|---|
WebhookUpdater |
setFilters(List<String> filters)
The list of events that your configured webhook targets will receive.
|
WebhookUpdater |
setFilters(String filters)
The list of events that your configured webhook targets will receive.
|
WebhookUpdater |
setMethod(String method)
The HTTP method to be used when sending a webhook request.
|
WebhookUpdater |
setPostWebhookUrl(String postWebhookUrl)
The absolute url the post-event webhook request should be sent to..
|
WebhookUpdater |
setPostWebhookUrl(URI postWebhookUrl)
The absolute url the post-event webhook request should be sent to..
|
WebhookUpdater |
setPreWebhookUrl(String preWebhookUrl)
The absolute url the pre-event webhook request should be sent to..
|
WebhookUpdater |
setPreWebhookUrl(URI preWebhookUrl)
The absolute url the pre-event webhook request should be sent to..
|
Webhook |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public WebhookUpdater(String pathChatServiceSid)
pathChatServiceSid
- The unique ID of the [Conversation
Service](https://www.twilio.com/docs/conversations/api/service-resource)
this conversation belongs to.public WebhookUpdater setPreWebhookUrl(URI preWebhookUrl)
preWebhookUrl
- The absolute url the pre-event webhook request should
be sent to.public WebhookUpdater setPreWebhookUrl(String preWebhookUrl)
preWebhookUrl
- The absolute url the pre-event webhook request should
be sent to.public WebhookUpdater setPostWebhookUrl(URI postWebhookUrl)
postWebhookUrl
- The absolute url the post-event webhook request should
be sent to.public WebhookUpdater setPostWebhookUrl(String postWebhookUrl)
postWebhookUrl
- The absolute url the post-event webhook request should
be sent to.public WebhookUpdater setFilters(List<String> filters)
filters
- The list of events that your configured webhook targets will
receive. Events not configured here will not fire.public WebhookUpdater setFilters(String filters)
filters
- The list of events that your configured webhook targets will
receive. Events not configured here will not fire.public WebhookUpdater setMethod(String method)
method
- The HTTP method to be used when sending a webhook requestpublic Webhook update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.