<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: 401 No token provided in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/401-No-token-provided/m-p/5649512#M11036</link>
    <description>&lt;P&gt;this link... &lt;A href="https://accounts.spotify.com/authorize" target="_blank"&gt;https://accounts.spotify.com/authorize&lt;/A&gt;&amp;nbsp;does not work... its usually show &lt;SPAN&gt;Missing required parameter: client_id&amp;nbsp;&lt;/SPAN&gt;...&lt;/P&gt;&lt;P&gt;while the ... &lt;A href="https://accounts.spotify.com/authorize" target="_blank"&gt;https://accounts.spotify.com/authorize&lt;/A&gt;&amp;nbsp;show no token provided.. how is that possible...&lt;/P&gt;</description>
    <pubDate>Tue, 10 Oct 2023 00:03:54 GMT</pubDate>
    <dc:creator>christian-kaku</dc:creator>
    <dc:date>2023-10-10T00:03:54Z</dc:date>
    <item>
      <title>401 No token provided</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/401-No-token-provided/m-p/5352949#M4184</link>
      <description>&lt;P&gt;I want to get as a JSON file the contents of my Spotify library, mainly liked songs and playlists. Spotify's web API provides that, but I am not experienced with web applications.&lt;/P&gt;&lt;P&gt;However I am experienced with Python, and I try to implement what the Spotify for Developers Documentation on the site suggests with Python.&lt;/P&gt;&lt;P&gt;Firstly, I have to request for an Access token which is used in every HTTP request. I follow the instructions &lt;A href="https://developer.spotify.com/documentation/general/guides/authorization/code-flow/" target="_blank" rel="nofollow noopener noreferrer"&gt;here&lt;/A&gt;, and in &lt;EM&gt;Request User Authentication&lt;/EM&gt; section, the GET request that I do for getting the callback responds with&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;'{ "error": { "status": 401, "message": "No token provided" } }'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If I understand correctly, I need the response of this request, in order to get the access token. My code is this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import requests&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;uri_redirect = '&lt;A href="http://localhost:8888/callback" target="_blank" rel="noopener"&gt;http://localhost:8888/callback&lt;/A&gt;'&lt;BR /&gt;authorize_endpoint = '&lt;A href="https://api.spotify.com/authorize" target="_blank" rel="noopener"&gt;https://api.spotify.com/authorize&lt;/A&gt;'&lt;BR /&gt;request_authorization_parameters = {'client_id': 'here I give my client id',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'response_type': 'code',&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'redirect_uri': uri_redirect,&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 'scope': 'user-library-read playlist-read-private'}&lt;BR /&gt;r_auth = requests.get(authorize_endpoint, params=request_authorization_parameters)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What am I missing?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers!&lt;/P&gt;</description>
      <pubDate>Thu, 10 Mar 2022 13:33:01 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/401-No-token-provided/m-p/5352949#M4184</guid>
      <dc:creator>ThanosSptfComm</dc:creator>
      <dc:date>2022-03-10T13:33:01Z</dc:date>
    </item>
    <item>
      <title>Re: 401 No token provided</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/401-No-token-provided/m-p/5354507#M4198</link>
      <description>&lt;P&gt;After all, it was a careless mistake. I used wrong URL for the authorization endpoint.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The request must be sent to &lt;A href="https://accounts.spotify.com/authorize" target="_blank"&gt;https://accounts.spotify.com/authorize&lt;/A&gt; instead of &lt;A href="https://api.spotify.com/authorize" target="_blank"&gt;https://api.spotify.com/authorize&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Following the rest of the documentation, I had no problem.&lt;/P&gt;</description>
      <pubDate>Mon, 14 Mar 2022 15:47:48 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/401-No-token-provided/m-p/5354507#M4198</guid>
      <dc:creator>ThanosSptfComm</dc:creator>
      <dc:date>2022-03-14T15:47:48Z</dc:date>
    </item>
    <item>
      <title>Re: 401 No token provided</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/401-No-token-provided/m-p/5649512#M11036</link>
      <description>&lt;P&gt;this link... &lt;A href="https://accounts.spotify.com/authorize" target="_blank"&gt;https://accounts.spotify.com/authorize&lt;/A&gt;&amp;nbsp;does not work... its usually show &lt;SPAN&gt;Missing required parameter: client_id&amp;nbsp;&lt;/SPAN&gt;...&lt;/P&gt;&lt;P&gt;while the ... &lt;A href="https://accounts.spotify.com/authorize" target="_blank"&gt;https://accounts.spotify.com/authorize&lt;/A&gt;&amp;nbsp;show no token provided.. how is that possible...&lt;/P&gt;</description>
      <pubDate>Tue, 10 Oct 2023 00:03:54 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/401-No-token-provided/m-p/5649512#M11036</guid>
      <dc:creator>christian-kaku</dc:creator>
      <dc:date>2023-10-10T00:03:54Z</dc:date>
    </item>
  </channel>
</rss>

