App\services\YouTube::__construct PHP 메소드

__construct() 공개 메소드

Construct an instance of YouTube service.
public __construct ( string $key = null, Client $client = null )
$key string The YouTube API key
$client GuzzleHttp\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());
    }