Constructor and Description |
---|
WebhookCreator(String pathServiceSid,
String friendlyName,
List<String> eventTypes,
String webhookUrl)
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 |
setStatus(Webhook.Status status)
The webhook status.
|
WebhookCreator |
setVersion(Webhook.Version version)
The webhook version.
|
create, createAsync, createAsync
public WebhookCreator(String pathServiceSid, String friendlyName, List<String> eventTypes, String webhookUrl)
pathServiceSid
- Service Sid.friendlyName
- The string that you assigned to describe the webhookeventTypes
- The array of events that this Webhook is subscribed to.webhookUrl
- The URL associated with this Webhook.public WebhookCreator setStatus(Webhook.Status status)
status
- The webhook statuspublic WebhookCreator setVersion(Webhook.Version version)
version
- The webhook versionpublic Webhook create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.