mirror of
https://github.com/koel/koel
synced 2024-12-29 22:13:06 +00:00
22 lines
512 B
PHP
22 lines
512 B
PHP
<?php
|
|
|
|
namespace App\Http\Integrations\Lastfm;
|
|
|
|
use App\Http\Integrations\Lastfm\Auth\LastfmAuthenticator;
|
|
use Saloon\Http\Connector;
|
|
use Saloon\Traits\Plugins\AcceptsJson;
|
|
|
|
class LastfmConnector extends Connector
|
|
{
|
|
use AcceptsJson;
|
|
|
|
public function resolveBaseUrl(): string
|
|
{
|
|
return config('koel.lastfm.endpoint');
|
|
}
|
|
|
|
protected function defaultAuth(): LastfmAuthenticator
|
|
{
|
|
return new LastfmAuthenticator(config('koel.lastfm.key'), config('koel.lastfm.secret'));
|
|
}
|
|
}
|