<?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 resolve in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/resolve/m-p/5426433#M6116</link>
    <description>&lt;P&gt;headers = {&lt;BR /&gt;"Authorization" : "application/json"&lt;BR /&gt;}&lt;BR /&gt;endpoint = "&lt;A href="https://api.spotify.com/v1/search" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/search&lt;/A&gt;"&lt;BR /&gt;data = urlencode({"type":"album","include_external":"audio"})&lt;BR /&gt;print(data),&lt;BR /&gt;lookup_url = f"{endpoint}?{data}"&lt;BR /&gt;print(lookup_url)&lt;BR /&gt;r= requests.get(lookup_url, data=data, headers = headers)#running print(r.status_code)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting error as&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;type=album&amp;amp;include_external=audio
&lt;A href="https://api.spotify.com/v1/search?type=album&amp;amp;include_external=audio" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/search?type=album&amp;amp;include_external=audio&lt;/A&gt;
400&lt;BR /&gt;&lt;BR /&gt;can anyone e=help me resolve it&lt;/PRE&gt;</description>
    <pubDate>Tue, 06 Sep 2022 20:48:28 GMT</pubDate>
    <dc:creator>Adarsh08</dc:creator>
    <dc:date>2022-09-06T20:48:28Z</dc:date>
    <item>
      <title>resolve</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/resolve/m-p/5426433#M6116</link>
      <description>&lt;P&gt;headers = {&lt;BR /&gt;"Authorization" : "application/json"&lt;BR /&gt;}&lt;BR /&gt;endpoint = "&lt;A href="https://api.spotify.com/v1/search" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/search&lt;/A&gt;"&lt;BR /&gt;data = urlencode({"type":"album","include_external":"audio"})&lt;BR /&gt;print(data),&lt;BR /&gt;lookup_url = f"{endpoint}?{data}"&lt;BR /&gt;print(lookup_url)&lt;BR /&gt;r= requests.get(lookup_url, data=data, headers = headers)#running print(r.status_code)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am getting error as&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;type=album&amp;amp;include_external=audio
&lt;A href="https://api.spotify.com/v1/search?type=album&amp;amp;include_external=audio" target="_blank" rel="noopener"&gt;https://api.spotify.com/v1/search?type=album&amp;amp;include_external=audio&lt;/A&gt;
400&lt;BR /&gt;&lt;BR /&gt;can anyone e=help me resolve it&lt;/PRE&gt;</description>
      <pubDate>Tue, 06 Sep 2022 20:48:28 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/resolve/m-p/5426433#M6116</guid>
      <dc:creator>Adarsh08</dc:creator>
      <dc:date>2022-09-06T20:48:28Z</dc:date>
    </item>
    <item>
      <title>Re: resolve</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/resolve/m-p/5426563#M6121</link>
      <description>&lt;P&gt;You get this error, because you don't provide a search query (&lt;STRONG&gt;q&lt;/STRONG&gt; in my example code)&lt;STRONG&gt;.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Also, you don't provide an &lt;STRONG&gt;Bearer&lt;/STRONG&gt; Access Token after &lt;STRONG&gt;Authorization&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;You can get an Access Token with the &lt;A href="https://developer.spotify.com/documentation/general/guides/authorization/client-credentials/" target="_blank" rel="noopener"&gt;Client Credentials Flow&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;or the &lt;A href="https://developer.spotify.com/documentation/general/guides/authorization/code-flow/" target="_blank" rel="noopener"&gt;Authorization Code Flow&lt;/A&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My example code:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;import requests&lt;/P&gt;&lt;P&gt;headers = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 'Accept': 'application/json',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 'Content-Type': 'application/json',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; '&lt;STRONG&gt;Authorization&lt;/STRONG&gt;': '&lt;STRONG&gt;Bearer&lt;/STRONG&gt; YourAccessCodeHere',&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P&gt;params = {&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; '&lt;STRONG&gt;q&lt;/STRONG&gt;': 'Queen',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 'type': 'album',&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; 'include_external': 'audio',&lt;/P&gt;&lt;P&gt;}&lt;/P&gt;&lt;P data-unlink="true"&gt;r = requests.get('https://api.spotify.com/v1/search&amp;nbsp;', params=params, headers=headers)&lt;/P&gt;</description>
      <pubDate>Wed, 07 Sep 2022 04:35:28 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/resolve/m-p/5426563#M6121</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2022-09-07T04:35:28Z</dc:date>
    </item>
  </channel>
</rss>

