Credentials.php 875 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. class Services_Twilio_Rest_Credentials extends Services_Twilio_SIPListResource {
  3. /**
  4. * Creates a new Credential instance
  5. *
  6. * Example usage:
  7. *
  8. * .. code-block:: php
  9. *
  10. * $client->account->sip->credential_lists->get('CLXXX')->credentials->create(
  11. * "AwesomeUsername", "SuperSecretPassword",
  12. * );
  13. *
  14. * :param string $username: the username for the new Credential object
  15. * :param string $password: the password for the new Credential object
  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($username, $password, $params = array()) {
  20. return parent::_create(array(
  21. 'Username' => $username,
  22. 'Password' => $password,
  23. ) + $params);
  24. }
  25. }