title: Error with Spotify API authorization on python
body: <p>I`m following a <a href="https://medium.com/analytics-vidhya/build-your-own-playlist-generator-with-spotifys-api-in-python-ceb883938ce4" rel="nofollow noreferrer">tutorial</a>  to create a Spotify playlist. I've followe every step but I'm having a problem with authorization.
  It should return a list with songs (later i will enter them on a playlist), but i get this error: &lt;class 'dict'&gt;: {'error': {'status': 400, 'message': 'Only valid bearer authentication supported'}}</p>
  <p>This is the code i have:</p>
  <pre><code>import requests
  
  url = &quot;https://api.spotify.com/v1/recommendations?&quot;
  token = &quot;I WILL CREATE A TOKEN GETTER&quot;
  
  #Filtros
  limit = input(&quot;How many songs? &quot;)
  market = &quot;ES&quot;
  seed_genres = input(&quot;Select the genres: &quot;)
  target_energy = int(input(&quot;From 0 to 10 how energetic do you want your playlist? &quot;))/10
  
  #Contactar con Spotify
  query = f&quot;{url}limit={limit}&amp;market={market}&amp;seed_genres={seed_genres}&amp;target_energy={target_energy}&quot;
  
  response = requests.get(query,
                         headers = {&quot;Content-Type&quot;:&quot;application/json&quot;,
                                    &quot;Authorization&quot;: f'{token}'})
  json_response = response.json()
  
  for i in json_response['tracks']:
              uris.append(i)
              print(f&quot;\&quot;{i['name']}\&quot; by {i['artists'][0]['name']}&quot;)
  </code></pre>