~ubuntu-branches/ubuntu/vivid/phabricator/vivid-proposed

« back to all changes in this revision

Viewing changes to phabricator/externals/twilio-php/Services/Twilio/Rest/Credentials.php

  • Committer: Package Import Robot
  • Author(s): Richard Sellam
  • Date: 2014-10-23 20:49:26 UTC
  • Revision ID: package-import@ubuntu.com-20141023204926-ar20vnfjqwxysrce
Tags: upstream-0~git20141023
ImportĀ upstreamĀ versionĀ 0~git20141023

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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
}