Domains.php 831 B

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