mirror of
https://github.com/koel/koel
synced 2024-11-15 00:47:18 +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'));
|
|
}
|
|
}
|