IpAccessControlLists.php 825 B

123456789101112131415161718192021222324252627
  1. <?php
  2. class Services_Twilio_Rest_IpAccessControlLists extends Services_Twilio_SIPListResource {
  3. /**
  4. * Creates a new IpAccessControlLists instance
  5. *
  6. * Example usage:
  7. *
  8. * .. code-block:: php
  9. *
  10. * $client->account->sip->ip_access_control_lists->create("MyFriendlyName");
  11. *
  12. * :param string $friendly_name: the friendly name of this ip access control list
  13. * :param array $params: a single array of parameters which is serialized and
  14. * sent directly to the Twilio API.
  15. * :return: the created list
  16. * :rtype: :class:`Services_Twilio_Rest_IpAccessControlList`
  17. *
  18. */
  19. public function create($friendly_name, $params = array()) {
  20. return parent::_create(array(
  21. 'FriendlyName' => $friendly_name,
  22. ) + $params);
  23. }
  24. }