/** * Creates a new IpAccessControlLists instance * * Example usage: * * .. code-block:: php * * $client->account->sip->ip_access_control_lists->create("MyFriendlyName"); * * :param string $friendly_name: the friendly name of this ip access control list * :param array $params: a single array of parameters which is serialized and * sent directly to the Twilio API. * :return: the created list * :rtype: :class:`Services_Twilio_Rest_IpAccessControlList` * */ public function create($friendly_name, $params = array()) { return parent::_create(array('FriendlyName' => $friendly_name) + $params); }
/** * Creates a new Credential instance * * Example usage: * * .. code-block:: php * * $client->account->sip->credential_lists->get('CLXXX')->credentials->create( * "AwesomeUsername", "SuperSecretPassword", * ); * * :param string $username: the username for the new Credential object * :param string $password: the password for the new Credential object * :param array $params: a single array of parameters which is serialized and * sent directly to the Twilio API. */ public function create($username, $password, $params = array()) { return parent::_create(array('Username' => $username, 'Password' => $password) + $params); }
/** * Creates a new IpAccessControlListMapping instance * * Example usage: * * .. code-block:: php * * $client->account->sip->domains->get('SDXXX')->ip_access_control_list_mappings->create("ALXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); * * :param string $ip_access_control_list_sid: the sid of the IpAccessControList * you're adding to this domain. * :param array $params: a single array of parameters which is serialized and * sent directly to the Twilio API. */ public function create($ip_access_control_list_sid, $params = array()) { return parent::_create(array('IpAccessControlListSid' => $ip_access_control_list_sid) + $params); }
/** * Creates a new IpAddress instance * * Example usage: * * .. code-block:: php * * $client->account->sip->ip_access_control_lists->get('ALXXX')->ip_addresses->create( * "FriendlyName", "127.0.0.1" * ); * * :param string $friendly_name: the friendly name for the new IpAddress object * :param string $ip_address: the ip address for the new IpAddress object * :param array $params: a single array of parameters which is serialized and * sent directly to the Twilio API. */ public function create($friendly_name, $ip_address, $params = array()) { return parent::_create(array('FriendlyName' => $friendly_name, 'IpAddress' => $ip_address) + $params); }
/** * Creates a new CredentialListMapping instance * * Example usage: * * .. code-block:: php * * $client->account->sip->domains->get('SDXXX')->credential_list_mappings->create("CLXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"); * * :param string $credential_list_sid: the sid of the CredentialList you're adding to this domain. * :param array $params: a single array of parameters which is serialized and * sent directly to the Twilio API. */ public function create($credential_list_sid, $params = array()) { return parent::_create(array('CredentialListSid' => $credential_list_sid) + $params); }