コード例 #1
0
ファイル: YouTube.php プロジェクト: andrewtweber/proste-sdk
 public function __construct($api_key)
 {
     parent::__construct();
     $this->params = ['key' => $api_key];
 }
コード例 #2
0
ファイル: GitHub.php プロジェクト: andrewtweber/proste-sdk
 /**
  * Authorize requests with a username and token
  *
  * @param  string  $username
  * @param  string  $token
  * @return void
  */
 public function __construct($username, $token)
 {
     parent::__construct();
     $this->username = $username;
     $this->token = $token;
 }