public class Client extends Verb
| Constructor and Description |
|---|
Client(String name)
Instantiate a new client.
|
| Modifier and Type | Method and Description |
|---|---|
void |
setMethod(String method)
Sets the method to use when requesting the URL.
|
void |
setStatusCallback(String url)
Set a URL to be requested when the status of this Call changes.
|
void |
setStatusCallbackEvents(String events)
Set the events Twilio will fire StatusCallbacks for.
|
void |
setStatusCallbackMethod(String method)
Set the method Twilio will use to request the StatusCallback URL.
|
void |
setUrl(String url)
Sets a url to play to one party before both parties have been connected.
|
append, asURL, getAttributes, getBody, getChildren, getTag, set, toEscapedXML, toXMLpublic Client(String name)
name - the namepublic void setMethod(String method)
method - the HTTP method to use when requesting the urlpublic void setUrl(String url)
url - the new urlpublic void setStatusCallback(String url)
url - Status callback URL.public void setStatusCallbackMethod(String method)
method - Either "GET" or "POST"public void setStatusCallbackEvents(String events)
events - Events to provide callbacks for.Copyright © 2011 Twilio, Inc. All Rights Reserved.