Exemplo n.º 1
0
 public function create($customerName, $street, $city, $region, $postalCode, $isoCountry, array $params = array())
 {
     $params["CustomerName"] = $customerName;
     $params["Street"] = $street;
     $params["City"] = $city;
     $params["Region"] = $region;
     $params["PostalCode"] = $postalCode;
     $params["IsoCountry"] = $isoCountry;
     return parent::_create($params);
 }
Exemplo n.º 2
0
 public function create($from, $to, $url, array $params = array())
 {
     $params["To"] = $to;
     $params["From"] = $from;
     if (self::isApplicationSid($url)) {
         $params["ApplicationSid"] = $url;
     } else {
         $params["Url"] = $url;
     }
     return parent::_create($params);
 }
Exemplo n.º 3
0
 public function create($name, array $params = array())
 {
     return parent::_create(array('FriendlyName' => $name) + $params);
 }
Exemplo n.º 4
0
 public function create(array $params = array())
 {
     return parent::_create($params);
 }
Exemplo n.º 5
0
 function create($from, $to, $body, array $params = array())
 {
     return parent::_create(array('From' => $from, 'To' => $to, 'Body' => $body) + $params);
 }
Exemplo n.º 6
0
 public function create($phoneNumber, array $params = array())
 {
     return parent::_create(array('PhoneNumber' => $phoneNumber) + $params);
 }
Exemplo n.º 7
0
 function create($from, $to, $body, array $params = array())
 {
     return parent::_create(array('src' => $from, 'dst' => $to, 'text' => $body) + $params);
 }
Exemplo n.º 8
0
 /**
  * Create a new UsageTrigger
  * @param string $category The category of usage to fire a trigger for. A full list of categories can be found in the `Usage Categories documentation <http://www.twilio.com/docs/api/rest/usage-records#usage-categories>`_.
  * @param string $value Fire the trigger when usage crosses this value.
  * @param string $url The URL to request when the trigger fires.
  * @param array $params Optional parameters for this trigger. A full list of parameters can be found in the `Usage Trigger documentation <http://www.twilio.com/docs/api/rest/usage-triggers#list-post-optional-parameters>`_.
  * @return Services_Twilio_Rest_UsageTrigger The created trigger
  */
 function create($category, $value, $url, array $params = array())
 {
     return parent::_create(array('UsageCategory' => $category, 'TriggerValue' => $value, 'CallbackUrl' => $url) + $params);
 }
Exemplo n.º 9
0
 /**
  * Create a new address.
  *
  * :param string $customerName: Your name or business name, or that of your customer.
  * :param string $street: The number and street address where you or your customer is located.
  * :param string $city: The city in which you or your customer is located.
  * :param string $region: The state or region in which you or your customer is located.
  * :param string $postalCode: The postal code in which you or your customer is located.
  * :param string $isoCountry: The ISO country code of your or your customer's address.
  * :param array $params: An array of optional parameters describing the new
  *      address. The ``$params`` array can contain the following keys:
  *
  *      *FriendlyName*
  *          A human-readable description of the new address. Maximum 64 characters.
  *
  * :returns: The new address
  * :rtype: :php:class:`Services_Twilio_Rest_Address`
  *
  */
 public function create($customerName, $street, $city, $region, $postalCode, $isoCountry, $params = array())
 {
     return parent::_create(array('CustomerName' => $customerName, 'Street' => $street, 'City' => $city, 'Region' => $region, 'PostalCode' => $postalCode, 'IsoCountry' => $isoCountry) + $params);
 }