Constructor and Description |
---|
WebhookCreator(String pathServiceSid,
String pathChannelSid,
Webhook.Type type)
Construct a new WebhookCreator.
|
Modifier and Type | Method and Description |
---|---|
Webhook |
create(TwilioRestClient client)
Make the request to the Twilio API to perform the create.
|
WebhookCreator |
setConfigurationFilters(List<String> configurationFilters)
The events that cause us to call the Channel Webhook.
|
WebhookCreator |
setConfigurationFilters(String configurationFilters)
The events that cause us to call the Channel Webhook.
|
WebhookCreator |
setConfigurationFlowSid(String configurationFlowSid)
The SID of the Studio
[Flow](https://www.twilio.com/docs/studio/rest-api/flow) to call when an
event in `configuration.filters` occurs.
|
WebhookCreator |
setConfigurationMethod(Webhook.Method configurationMethod)
The HTTP method used to call `configuration.url`.
|
WebhookCreator |
setConfigurationRetryCount(Integer configurationRetryCount)
The number of times to retry the webhook if the first attempt fails.
|
WebhookCreator |
setConfigurationTriggers(List<String> configurationTriggers)
A string that will cause us to call the webhook when it is present in a
message body.
|
WebhookCreator |
setConfigurationTriggers(String configurationTriggers)
A string that will cause us to call the webhook when it is present in a
message body.
|
WebhookCreator |
setConfigurationUrl(String configurationUrl)
The URL of the webhook to call using the `configuration.method`..
|
create, createAsync, createAsync
public WebhookCreator(String pathServiceSid, String pathChannelSid, Webhook.Type type)
pathServiceSid
- The SID of the Service with the Channel to create the
resource underpathChannelSid
- The SID of the Channel the new resource belongs totype
- The type of webhookpublic WebhookCreator setConfigurationUrl(String configurationUrl)
configurationUrl
- The URL of the webhook to callpublic WebhookCreator setConfigurationMethod(Webhook.Method configurationMethod)
configurationMethod
- The HTTP method used to call `configuration.url`public WebhookCreator setConfigurationFilters(List<String> configurationFilters)
configurationFilters
- The events that cause us to call the Channel
Webhookpublic WebhookCreator setConfigurationFilters(String configurationFilters)
configurationFilters
- The events that cause us to call the Channel
Webhookpublic WebhookCreator setConfigurationTriggers(List<String> configurationTriggers)
configurationTriggers
- A string that will cause us to call the webhook
when it is found in a message bodypublic WebhookCreator setConfigurationTriggers(String configurationTriggers)
configurationTriggers
- A string that will cause us to call the webhook
when it is found in a message bodypublic WebhookCreator setConfigurationFlowSid(String configurationFlowSid)
configurationFlowSid
- The SID of the Studio Flow to call when an event
occurspublic WebhookCreator setConfigurationRetryCount(Integer configurationRetryCount)
configurationRetryCount
- The number of times to retry the webhook if
the first attempt failspublic Webhook create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.