<?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: Long-term Access Token for using in Node Red in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599244#M27824</link>
    <description>&lt;P&gt;Hi Greg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for this! I have managed to successfully implement the code (using my App Key etc) as far as line 19.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run that next section, python just shuts down... any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Laura&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 24 May 2022 16:18:17 GMT</pubDate>
    <dc:creator>lsteel11</dc:creator>
    <dc:date>2022-05-24T16:18:17Z</dc:date>
    <item>
      <title>Long-term Access Token for using in Node Red</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599240#M27822</link>
      <description>&lt;P&gt;Hi,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am trying to sync data from a raspberry pi to a dropbox app, so that I can access the data remotely in real time (e.g. it updates every 10 mins). I created a flow in Node Red to do this, using the dropbox out node - and put in the access token from my dropbox app. This worked well, however, the access token expired after a few hours. From researching, I see that dropbox is now only generating short term access tokens. However, for my data collection I require long term access.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Would generating a refresh token solve this problem?&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. If so, how do I generate a refresh token? I have&amp;nbsp; downloaded python and python SDK, and tried to follow the documentation, but I am confused and cannot get it to work.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I would really appreciate any help on the above, or any other ideas you may have as to how to sync this data!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks,&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Laura&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 25 May 2022 05:14:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599240#M27822</guid>
      <dc:creator>lsteel11</dc:creator>
      <dc:date>2022-05-25T05:14:09Z</dc:date>
    </item>
    <item>
      <title>Re: Long-term Access Token for using in Node Red</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599243#M27823</link>
      <description>&lt;P&gt;1. Yes, using a refresh token is the right way to maintain long-term access without repeated manual interaction.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;2. You can find &lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-pkce.py" target="_self"&gt;an example of using the Python SDK to process the app authorization flow to get a refresh token here&lt;/A&gt;. Once you have the refresh token, you can store and re-use it to make the Dropbox client object whenever you need, without processing the app authorization flow again. The SDK will use the refresh token to perform the refresh process for you automatically.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 15:59:15 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599243#M27823</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-05-24T15:59:15Z</dc:date>
    </item>
    <item>
      <title>Re: Long-term Access Token for using in Node Red</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599244#M27824</link>
      <description>&lt;P&gt;Hi Greg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for this! I have managed to successfully implement the code (using my App Key etc) as far as line 19.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run that next section, python just shuts down... any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks,&amp;nbsp;&lt;/P&gt;&lt;P&gt;Laura&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 16:18:17 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599244#M27824</guid>
      <dc:creator>lsteel11</dc:creator>
      <dc:date>2022-05-24T16:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Long-term Access Token for using in Node Red</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599245#M27825</link>
      <description>&lt;P&gt;Hi Greg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for this! I have managed to successfully implement the code (using my App key etc) up until line 19.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I run this next section, python just shuts down ... any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&lt;/P&gt;&lt;P&gt;Laura&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 16:21:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599245#M27825</guid>
      <dc:creator>lsteel11</dc:creator>
      <dc:date>2022-05-24T16:21:06Z</dc:date>
    </item>
    <item>
      <title>Re: Long-term Access Token for using in Node Red</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599246#M27826</link>
      <description>&lt;P&gt;Hi Greg,&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you so much for this! I have tried to reply a couple of times but dropbox keeps marking my response as spam and removing it!?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have successfully implemented the example code (using my app key etc) up until line 19. When I try to run this next section, python just shuts down ... any ideas?&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many thanks!&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 16:24:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599246#M27826</guid>
      <dc:creator>lsteel11</dc:creator>
      <dc:date>2022-05-24T16:24:11Z</dc:date>
    </item>
    <item>
      <title>Re: Long-term Access Token for using in Node Red</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599260#M27829</link>
      <description>&lt;P&gt;Apologies for the trouble with the spam filter. I just unflagged your posts. Anyway, I saw &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Generating-Refresh-Token-using-example-code/td-p/599247" target="_self"&gt;your new post and followed up there&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 24 May 2022 17:23:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Long-term-Access-Token-for-using-in-Node-Red/m-p/599260#M27829</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2022-05-24T17:23:44Z</dc:date>
    </item>
  </channel>
</rss>

