<?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 Get Access token without user interaction? in Spotify for Developers</title>
    <link>https://community.spotify.com/t5/Spotify-for-Developers/Get-Access-token-without-user-interaction/m-p/5259125#M3199</link>
    <description>&lt;P&gt;So this has been bothering me for the longest. I’ve created a script using the Spotipy library. I’m collecting data on my most recently played tracks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything is fine except refreshing the access token. I have a bit of code which returns the token. When i run it in Jupyter Notebook It briefly opens and closes the web browser then returns my token. This is great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when i run it on google cloud my function ends up timing out with a log saying.&lt;/P&gt;&lt;P&gt;’user authentication requires user interaction for web browser’&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so my question is is there ANY way of completely automating the process of getting an access token without needing me to do anything. I posted this on stackoverflow &lt;A href="https://stackoverflow.com/questions/69061985/spotify-spotipy-web-api-access-token-authorization-problem-running-on-google-c" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 13 Sep 2021 00:34:52 GMT</pubDate>
    <dc:creator>Dnicky079</dc:creator>
    <dc:date>2021-09-13T00:34:52Z</dc:date>
    <item>
      <title>Get Access token without user interaction?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Get-Access-token-without-user-interaction/m-p/5259125#M3199</link>
      <description>&lt;P&gt;So this has been bothering me for the longest. I’ve created a script using the Spotipy library. I’m collecting data on my most recently played tracks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Everything is fine except refreshing the access token. I have a bit of code which returns the token. When i run it in Jupyter Notebook It briefly opens and closes the web browser then returns my token. This is great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However when i run it on google cloud my function ends up timing out with a log saying.&lt;/P&gt;&lt;P&gt;’user authentication requires user interaction for web browser’&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;so my question is is there ANY way of completely automating the process of getting an access token without needing me to do anything. I posted this on stackoverflow &lt;A href="https://stackoverflow.com/questions/69061985/spotify-spotipy-web-api-access-token-authorization-problem-running-on-google-c" target="_self"&gt;here&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 00:34:52 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Get-Access-token-without-user-interaction/m-p/5259125#M3199</guid>
      <dc:creator>Dnicky079</dc:creator>
      <dc:date>2021-09-13T00:34:52Z</dc:date>
    </item>
    <item>
      <title>Re: Get Access token without user interaction?</title>
      <link>https://community.spotify.com/t5/Spotify-for-Developers/Get-Access-token-without-user-interaction/m-p/5259129#M3201</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;P&gt;so my question is is there ANY way of completely automating the process of getting an access token without needing me to do anything&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No. You only need to go through the authorization process&amp;nbsp;&lt;STRONG&gt;once&lt;/STRONG&gt;, after which the access token can be automatically refreshed using the refresh token.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you want to run your code on google cloud, then authorize your app the first time with a local script, then find a way of persistently storing the authorization information such that it can be accessed by your code on google cloud.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;More specifically, when you authorize the user using spotipy, a JSON file will be created with your authorization information. You need to find a way to access and update this file from Google Cloud.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Sep 2021 01:29:57 GMT</pubDate>
      <guid>https://community.spotify.com/t5/Spotify-for-Developers/Get-Access-token-without-user-interaction/m-p/5259129#M3201</guid>
      <dc:creator>Peter_Schorn</dc:creator>
      <dc:date>2021-09-13T01:29:57Z</dc:date>
    </item>
  </channel>
</rss>

