title: Spotify web API - 401 Permissions missing
body: <p>I'm trying to build a spotify web player using the spotify web API.
  I registered my Application on spotify and whitelist the callback URL.
  Then the authorization process works fine. I receive the token for make others requests.
  But when I try to make a simple currently-playing request,</p>
  
  <p><a href="https://developer.spotify.com/web-api/get-the-users-currently-playing-track/" rel="nofollow noreferrer">https://developer.spotify.com/web-api/get-the-users-currently-playing-track/</a></p>
  
  <p>I receive </p>
  
  <pre><code>Array ( [error] =&gt; Array ( [status] =&gt; 401 [message] =&gt; Permissions missing ) )
  </code></pre>
  
  <p>the PHP code is:</p>
  
  <pre><code>session_start();
  $req = $_SESSION['token_type'] . " " . $_SESSION['token'];
  $headers_after_token = array(
     "Accept: */*",
     "Authorization: " . $req);
  $url="https://api.spotify.com/v1/me/player/currently-playing";
  echo "&lt;br&gt;REQ-currently-playing: ".$req."&lt;br&gt;";
  $ch = curl_init();
  curl_setopt($ch, CURLOPT_URL, $url);
  curl_setopt($ch, CURLOPT_HTTPHEADER, $headers_after_token);
  curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
  curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
  $response = json_decode(curl_exec($ch), true);
  curl_close($ch);
  echo "&lt;br&gt;&lt;br&gt;";
  print_r($response);
  </code></pre>
  
  <p>the <code>$_SESSION['token_type']</code> contains "Bearer" as mentioned in the API endpoint-reference
  <a href="https://developer.spotify.com/web-api/endpoint-reference/" rel="nofollow noreferrer">https://developer.spotify.com/web-api/endpoint-reference/</a></p>
  
  <p>the <code>$_SESSION['token']</code> contains the token retrieved after the authentication process. </p>
  
  <p>Both are well formed thanks to the <code>echo "&lt;br&gt;REQ-currently-playing: ".$req."&lt;br&gt;";</code> I can see that the 2 variables are set.</p>
  
  <p>I'm using XAMPP v3.2.2 for deploy php pages.</p>