public class WebhookCreator extends Creator<Webhook>
Constructor and Description |
---|
WebhookCreator(String pathAssistantSid,
String uniqueName,
String events,
URI 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 |
setWebhookMethod(String webhookMethod)
The method to be used when calling the webhook's URL..
|
create, createAsync, createAsync
public WebhookCreator(String pathAssistantSid, String uniqueName, String events, URI webhookUrl)
pathAssistantSid
- The SID of the Assistant that is the parent of the
new resourceuniqueName
- An application-defined string that uniquely identifies the
resourceevents
- The list of space-separated events that this Webhook will
subscribe to.webhookUrl
- The URL associated with this Webhook.public WebhookCreator setWebhookMethod(String webhookMethod)
webhookMethod
- The method to be used when calling the webhook's URL.public Webhook create(TwilioRestClient client)
Copyright © 2019 Twilio, Inc. All Rights Reserved.