mirror of
https://github.com/koel/koel
synced 2024-12-24 11:33:05 +00:00
23 lines
473 B
PHP
23 lines
473 B
PHP
|
<?php
|
||
|
|
||
|
namespace App\Http\Integrations\YouTube;
|
||
|
|
||
|
use Saloon\Http\Auth\QueryAuthenticator;
|
||
|
use Saloon\Http\Connector;
|
||
|
use Saloon\Traits\Plugins\AcceptsJson;
|
||
|
|
||
|
class YouTubeConnector extends Connector
|
||
|
{
|
||
|
use AcceptsJson;
|
||
|
|
||
|
public function resolveBaseUrl(): string
|
||
|
{
|
||
|
return config('koel.youtube.endpoint');
|
||
|
}
|
||
|
|
||
|
protected function defaultAuth(): QueryAuthenticator
|
||
|
{
|
||
|
return new QueryAuthenticator('key', config('koel.youtube.key'));
|
||
|
}
|
||
|
}
|