<?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: API Auth using only a python script in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5536394#M8686</link>
    <description>&lt;P&gt;Thanks for responding but I don't believe I made the issue I am facing clear&lt;BR /&gt;My code is not, as of today, an API, just a bunch of Python code with the requests module that uses the Spotify API, and as of today, I got the Auth Token via the console, so I cannot have a redirect_uri.&lt;BR /&gt;From both links you shared it seems that both require the redirect_uri, for me to have the auth token in any way other than client_credentials, that is not enough, regarding the permissions I need for the package to run&lt;BR /&gt;Having that in mind, is there anything I can do to solve it, in a way that does not require a server running on my end, to respond to the redirect_uri request? Even if the solution requires the client to go to a secure web page to get the token and return it to the package because that is sort of what is already happening&lt;BR /&gt;And again, thanks for the help&lt;/P&gt;</description>
    <pubDate>Sat, 08 Apr 2023 15:39:22 GMT</pubDate>
    <dc:creator>nikkk1</dc:creator>
    <dc:date>2023-04-08T15:39:22Z</dc:date>
    <item>
      <title>API Auth using only a python script</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5536166#M8677</link>
      <description>&lt;P&gt;&lt;SPAN&gt;None of the below information is required. However, the more you provide the easier it will be for us to try and help.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Plan&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not applicable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Country&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Brazil&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Device&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not applicable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Operating System&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Not applicable&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;My Question or Issue&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Hi, there&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;My name is Nikolas and I have a public, free, pip package called spotify_recommender_api, which is also on GitHub: &lt;A href="https://github.com/nikolas-virionis/spotify-api" target="_blank" rel="noopener"&gt;https://github.com/nikolas-virionis/spotify-api&lt;/A&gt;, that basically gives the user a bunch of recommendations, within the scope of a single playlist or the users account&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;It has been running for a while and has a bunch of users, but in my eyes, it is really useful and I use it now and again to explore more songs myself. being the most avid user of the package&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;Recently Spotify took down their console for testing the endpoints freely, which is of course their right, but my package was fully based on it, because since it is only a pip package I didn't find a way to get the redirect_uri and get the auth token that way, so my package always required the user to be redirected into the console, get the auth token and give it to the script.&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN&gt;The problem now is that the only way I can get any permissions is with the client_credentials method which does not allow for me to get user data (all I use is most listened tracks and artists, and I scan the user library and create and update playlists, never deleting anything)&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;So for the past couple of days, my package has been shut down because of this problem, and since I do not profit from it in any way, shape, or form, and it is only meant to help Spotify users, including myself, I would hope there could be a way to solve this problem and still be able to continue with the package, because for me it is something amazing, and the more people it helps the more fulfilled I am. And since music is such a big part of a lot of people's mental health, helping people find whatever they are looking for is great&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Anyways thanks for the help&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 00:34:15 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5536166#M8677</guid>
      <dc:creator>nikkk1</dc:creator>
      <dc:date>2023-04-08T00:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: API Auth using only a python script</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5536188#M8678</link>
      <description>&lt;P data-unlink="true"&gt;Have you looked into this? https://github.com/spotipy-dev/spotipy&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to access my account with it. The docs don't say it supports PKCE authentication, but it does when you look at the code.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 03:20:50 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5536188#M8678</guid>
      <dc:creator>coniferous</dc:creator>
      <dc:date>2023-04-08T03:20:50Z</dc:date>
    </item>
    <item>
      <title>Re: API Auth using only a python script</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5536316#M8681</link>
      <description>&lt;P&gt;I use the Python module &lt;A href="https://github.com/spotipy-dev/spotipy" target="_blank" rel="noopener"&gt;Spotipy&lt;/A&gt; myself, but if you don't want to use that module, you can have a look at &lt;A href="https://stackoverflow.com/questions/75286588/spotify-web-api-call-gives-wrong-code-python/75292843#75292843" target="_blank" rel="noopener"&gt;this answer&lt;/A&gt; on Stack Overflow.&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 10:45:20 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5536316#M8681</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-04-08T10:45:20Z</dc:date>
    </item>
    <item>
      <title>Re: API Auth using only a python script</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5536394#M8686</link>
      <description>&lt;P&gt;Thanks for responding but I don't believe I made the issue I am facing clear&lt;BR /&gt;My code is not, as of today, an API, just a bunch of Python code with the requests module that uses the Spotify API, and as of today, I got the Auth Token via the console, so I cannot have a redirect_uri.&lt;BR /&gt;From both links you shared it seems that both require the redirect_uri, for me to have the auth token in any way other than client_credentials, that is not enough, regarding the permissions I need for the package to run&lt;BR /&gt;Having that in mind, is there anything I can do to solve it, in a way that does not require a server running on my end, to respond to the redirect_uri request? Even if the solution requires the client to go to a secure web page to get the token and return it to the package because that is sort of what is already happening&lt;BR /&gt;And again, thanks for the help&lt;/P&gt;</description>
      <pubDate>Sat, 08 Apr 2023 15:39:22 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5536394#M8686</guid>
      <dc:creator>nikkk1</dc:creator>
      <dc:date>2023-04-08T15:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: API Auth using only a python script</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5537648#M8738</link>
      <description>&lt;P&gt;Is there any way to go around this issue?&lt;BR /&gt;Otherwise, I would need an actual infrastructure to host it, right? Since I would need a server running and stuff, and for the package it probably would be the end of it.&lt;BR /&gt;Anyways thanks&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 16:04:28 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5537648#M8738</guid>
      <dc:creator>nikkk1</dc:creator>
      <dc:date>2023-04-11T16:04:28Z</dc:date>
    </item>
    <item>
      <title>Re: API Auth using only a python script</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5537719#M8746</link>
      <description>&lt;P&gt;I recommend you to read this fully: &lt;A href="https://developer.spotify.com/documentation/web-api/tutorials/getting-started" target="_blank" rel="noopener"&gt;https://developer.spotify.com/documentation/web-api/tutorials/getting-started&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 18:47:13 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5537719#M8746</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-04-11T18:47:13Z</dc:date>
    </item>
    <item>
      <title>Re: API Auth using only a python script</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5537835#M8749</link>
      <description>&lt;P&gt;Thanks for the reply&lt;BR /&gt;Reading that page, on the bottom, there is what I attached saying that the client_credentials is not fit for multi-user use&lt;/P&gt;&lt;P&gt;My package is only meant to help as many users as possible and all the other 3 auth types require the redirect_url&lt;/P&gt;&lt;P&gt;This is why the package requires the user to log into developer.spotify to get the token, because it was the only way&lt;/P&gt;&lt;P&gt;Now, is there anything I am stating as fact, which is wrong? Please probably the answer I am looking for is there.&lt;BR /&gt;Thanks again&lt;/P&gt;</description>
      <pubDate>Tue, 11 Apr 2023 23:20:44 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5537835#M8749</guid>
      <dc:creator>nikkk1</dc:creator>
      <dc:date>2023-04-11T23:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: API Auth using only a python script</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5538187#M8755</link>
      <description>&lt;P&gt;If you read it and came to the conclusion there's no way around it, there's no way around it.&lt;/P&gt;&lt;P&gt;You can give the users of your module the instructions on how to setup an app with &lt;EM&gt;&lt;A href="http://localhost:3000/callback" target="_blank"&gt;http://localhost:3000/callback&lt;/A&gt;&lt;/EM&gt; as redirect url and let them fill in their client id and client secret.&lt;/P&gt;</description>
      <pubDate>Wed, 12 Apr 2023 14:22:12 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5538187#M8755</guid>
      <dc:creator>Ximzend</dc:creator>
      <dc:date>2023-04-12T14:22:12Z</dc:date>
    </item>
    <item>
      <title>Re: API Auth using only a python script</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5538744#M8771</link>
      <description>&lt;P&gt;I understand.&lt;BR /&gt;What you are saying makes sense.&lt;BR /&gt;Thanks for your help.&lt;BR /&gt;I am gonna test some things here on my end, to see if I can save my package&lt;BR /&gt;Thank you&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 10:50:51 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5538744#M8771</guid>
      <dc:creator>nikkk1</dc:creator>
      <dc:date>2023-04-13T10:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: API Auth using only a python script</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5539190#M8784</link>
      <description>&lt;P&gt;Since it is a Python package, I been thinking about using Fast API, since it is effortless and can be both started and killed via a single line of Python code (using uvicorn). Do you think this would be possible?&amp;nbsp;&lt;BR /&gt;I am asking because I couldn't test it yet and think it will be really costly in terms of time and refactorings&lt;BR /&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 14 Apr 2023 00:47:31 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/API-Auth-using-only-a-python-script/m-p/5539190#M8784</guid>
      <dc:creator>nikkk1</dc:creator>
      <dc:date>2023-04-14T00:47:31Z</dc:date>
    </item>
  </channel>
</rss>

