mirror of
https://github.com/RSS-Bridge/rss-bridge.git
synced 2025-08-13 03:54:04 +02:00
refactor: return proper response object (#4169)
This commit is contained in:
@@ -286,9 +286,9 @@ class SpotifyBridge extends BridgeAbstract
|
||||
} else {
|
||||
$basicAuth = base64_encode(sprintf('%s:%s', $this->getInput('clientid'), $this->getInput('clientsecret')));
|
||||
$json = getContents('https://accounts.spotify.com/api/token', [
|
||||
"Authorization: Basic $basicAuth"
|
||||
"Authorization: Basic $basicAuth",
|
||||
], [
|
||||
CURLOPT_POSTFIELDS => 'grant_type=client_credentials'
|
||||
CURLOPT_POSTFIELDS => 'grant_type=client_credentials',
|
||||
]);
|
||||
$data = Json::decode($json);
|
||||
$this->token = $data['access_token'];
|
||||
|
Reference in New Issue
Block a user