mirror of
https://github.com/koel/koel
synced 2024-12-20 09:33:23 +00:00
22 lines
473 B
PHP
22 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'));
|
|
}
|
|
}
|