App\services\RESTfulService::__construct PHP Method

__construct() public method

public __construct ( $key, $secret, $endpoint, Client $client )
$client GuzzleHttp\Client
    public function __construct($key, $secret, $endpoint, Client $client)
    {
        $this->setKey($key);
        $this->setSecret($secret);
        $this->setEndpoint($endpoint);
        $this->setClient($client);
    }

Usage Example

コード例 #1
0
ファイル: YouTube.php プロジェクト: phanan/koel
 /**
  * Construct an instance of YouTube service.
  *
  * @param string      $key    The YouTube API key
  * @param Client|null $client The Guzzle HTTP client
  */
 public function __construct($key = null, Client $client = null)
 {
     parent::__construct($key ?: config('koel.youtube.key'), null, 'https://www.googleapis.com/youtube/v3', $client ?: new Client());
 }
All Usage Examples Of App\services\RESTfulService::__construct