[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

/externals/twilio-php/Services/Twilio/Rest/ -> Domains.php (source)

   1  <?php
   2  
   3  class Services_Twilio_Rest_Domains extends Services_Twilio_SIPListResource {
   4  
   5      /**
   6       * Creates a new Domain instance
   7       *
   8       * Example usage:
   9       *
  10       *  .. code-block:: php
  11       *
  12       *      $client->account->sip->domains->create(
  13       *          "MyFriendlyName", "MyDomainName"
  14       *      );
  15       *
  16       * :param string $friendly_name: the friendly name of this domain
  17       * :param string $domain_name: the domain name for this domain
  18       * :param array $params: a single array of parameters which is serialized and
  19       *      sent directly to the Twilio API.
  20       */
  21      public function create($friendly_name, $domain_name, $params = array()) {
  22          return parent::_create(array(
  23              'FriendlyName' => $friendly_name,
  24              'DomainName' => $domain_name,
  25          ) + $params);
  26      }
  27  }
  28  


Generated: Sun Nov 30 09:20:46 2014 Cross-referenced by PHPXref 0.7.1