From 637417f900c0f7c61148ba94daa3b7fa0d5da175 Mon Sep 17 00:00:00 2001 From: Armino Popp Date: Thu, 16 Jan 2020 12:59:24 +0200 Subject: [PATCH] Fixed getUser --- src/Auth/OAuth/Spotify.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Auth/OAuth/Spotify.php b/src/Auth/OAuth/Spotify.php index 44854fbb49..84cd9d0151 100644 --- a/src/Auth/OAuth/Spotify.php +++ b/src/Auth/OAuth/Spotify.php @@ -138,7 +138,7 @@ class Spotify extends OAuth { if (empty($this->user)) { $this->user = json_decode($this->request('GET', - $this->resourceEndpoint, ['Authorization: Bearer '.urlencode($accessToken)]), true); + $this->resourceEndpoint . "me", ['Authorization: Bearer '.urlencode($accessToken)]), true); } return $this->user;