[ Index ]

PHP Cross Reference of Phabricator

title

Body

[close]

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

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


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