com.twilio.sdk.verbs
Class Client

java.lang.Object
  extended by com.twilio.sdk.verbs.Verb
      extended by com.twilio.sdk.verbs.Client

public class Client
extends Verb

Class for the <Client> TwiML verb. A full reference can be found online at https://www.twilio.com/docs/api/twiml/client.


Field Summary
 
Fields inherited from class com.twilio.sdk.verbs.Verb
V_BODY, V_CLIENT, V_CONFERENCE, V_DIAL, V_ENQUEUE, V_GATHER, V_HANGUP, V_LEAVE, V_MEDIA, V_MESSAGE, V_NUMBER, V_PAUSE, V_PLAY, V_QUEUE, V_RECORD, V_REDIRECT, V_REJECT, V_RESPONSE, V_SAY, V_SIP, V_SMS, V_URI
 
Constructor Summary
Client(String name)
          Instantiate a new client.
 
Method Summary
 void setMethod(String method)
          Sets the method to use when requesting the URL.
 void setUrl(String url)
          Sets a url to play to one party before both parties have been connected.
 
Methods inherited from class com.twilio.sdk.verbs.Verb
append, asURL, getAttributes, getBody, getChildren, getTag, set, toEscapedXML, toXML
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Client

public Client(String name)
Instantiate a new client.

Parameters:
name - the name
Method Detail

setMethod

public void setMethod(String method)
Sets the method to use when requesting the URL.

Parameters:
method - the HTTP method to use when requesting the url

setUrl

public void setUrl(String url)
Sets a url to play to one party before both parties have been connected. This can be used to reject an incoming call or play TwiML to one party before connecting the two.

Parameters:
url - the new url


Copyright © 2011 Twilio, Inc. All Rights Reserved.