Constructor and Description |
---|
WebhookUpdater(String pathServiceSid,
String pathChannelSid,
String pathSid)
Construct a new WebhookUpdater.
|
Modifier and Type | Method and Description |
---|---|
WebhookUpdater |
setConfigurationFilters(List<String> configurationFilters)
The events that cause us to call the Channel Webhook.
|
WebhookUpdater |
setConfigurationFilters(String configurationFilters)
The events that cause us to call the Channel Webhook.
|
WebhookUpdater |
setConfigurationFlowSid(String configurationFlowSid)
The SID of the Studio Flow to call when
an event in `configuration.filters` occurs.
|
WebhookUpdater |
setConfigurationMethod(Webhook.Method configurationMethod)
The HTTP method used to call `configuration.url`.
|
WebhookUpdater |
setConfigurationRetryCount(Integer configurationRetryCount)
The number of times to retry the webhook if the first attempt fails.
|
WebhookUpdater |
setConfigurationTriggers(List<String> configurationTriggers)
A string that will cause us to call the webhook when it is present in a
message body.
|
WebhookUpdater |
setConfigurationTriggers(String configurationTriggers)
A string that will cause us to call the webhook when it is present in a
message body.
|
WebhookUpdater |
setConfigurationUrl(String configurationUrl)
The URL of the webhook to call using the `configuration.method`..
|
Webhook |
update(TwilioRestClient client)
Make the request to the Twilio API to perform the update.
|
update, updateAsync, updateAsync
public WebhookUpdater(String pathServiceSid, String pathChannelSid, String pathSid)
pathServiceSid
- The SID of the Service with the Channel that has the
Webhook resource to updatepathChannelSid
- The SID of the Channel the resource to update belongs
topathSid
- The SID of the resourcepublic WebhookUpdater setConfigurationUrl(String configurationUrl)
configurationUrl
- The URL of the webhook to callpublic WebhookUpdater setConfigurationMethod(Webhook.Method configurationMethod)
configurationMethod
- The HTTP method used to call `configuration.url`public WebhookUpdater setConfigurationFilters(List<String> configurationFilters)
configurationFilters
- The events that cause us to call the Channel
Webhookpublic WebhookUpdater setConfigurationFilters(String configurationFilters)
configurationFilters
- The events that cause us to call the Channel
Webhookpublic WebhookUpdater setConfigurationTriggers(List<String> configurationTriggers)
configurationTriggers
- A string that will cause us to call the webhook
when it is found in a message bodypublic WebhookUpdater setConfigurationTriggers(String configurationTriggers)
configurationTriggers
- A string that will cause us to call the webhook
when it is found in a message bodypublic WebhookUpdater setConfigurationFlowSid(String configurationFlowSid)
configurationFlowSid
- The SID of the Studio Flow to call when an event
occurspublic WebhookUpdater setConfigurationRetryCount(Integer configurationRetryCount)
configurationRetryCount
- The number of times to retry the webhook if
the first attempt failspublic Webhook update(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.