Twilio capability token generator
author | Aleksey Korzun |
---|---|
package | Library |
subpackage | Twilio\Utility |
__call(string $verb, array $attributes) : \SimpleXmlElement
A basic example:
php> print $this->say('hello');
<Say>hello</Say>
An example with attributes:
php> print $this->say('hello', array('voice' => 'woman'));
<Say voice="woman">hello</Say>
You could even just pass in an attributes array, omitting the noun:
php> print $this->gather(array('timeout' => '20'));
<Gather timeout="20"/>
string
The Twiml verb.
array
string
\SimpleXmlElement
__construct(\SimpleXmlElement | array $argument) : void
\SimpleXmlElement
array
the element to wrap/attributes to add to the element. If nothing is passed we will initialize an empty element named 'Response'.
\Twilio\Utility\Exception\Twiml |
---|
__toString() : string
string
$element : \SimpleXmlElement