<?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 Raspberry Pi File Transfer: Access Token Keeps Expiring in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Raspberry-Pi-File-Transfer-Access-Token-Keeps-Expiring/m-p/587051#M2494</link>
    <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to this space and I'm having trouble making it so that my access token doesn't expire. I simply want to upload some videos that the Raspberry Pi cam record onto my Dropbox. Below is a picture of my code. Can someone help me make it such that the access token doesn't expire? I read something about refresh tokens and what not but I don't know how to do it.&amp;nbsp; Any helpful code snippet would be really helpful!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance c:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S Even better, is there a way to just download Dropbox onto the raspberry-Pi such that I just have the linked folder there on the desktop? I have this version of the rasp-pi:&amp;nbsp;&lt;A href="https://www.amazon.com/gp/product/B08B6F8QRV/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&amp;amp;psc=1" target="_blank" rel="noopener"&gt;https://www.amazon.com/gp/product/B08B6F8QRV/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&amp;amp;psc=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gsanvel_0-1648579146155.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/28411i6B45BD602D895BC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gsanvel_0-1648579146155.png" alt="gsanvel_0-1648579146155.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 31 Mar 2022 12:35:07 GMT</pubDate>
    <dc:creator>gsanvel</dc:creator>
    <dc:date>2022-03-31T12:35:07Z</dc:date>
    <item>
      <title>Raspberry Pi File Transfer: Access Token Keeps Expiring</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Raspberry-Pi-File-Transfer-Access-Token-Keeps-Expiring/m-p/587051#M2494</link>
      <description>&lt;P&gt;Hi all,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'm new to this space and I'm having trouble making it so that my access token doesn't expire. I simply want to upload some videos that the Raspberry Pi cam record onto my Dropbox. Below is a picture of my code. Can someone help me make it such that the access token doesn't expire? I read something about refresh tokens and what not but I don't know how to do it.&amp;nbsp; Any helpful code snippet would be really helpful!!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance c:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;P.S Even better, is there a way to just download Dropbox onto the raspberry-Pi such that I just have the linked folder there on the desktop? I have this version of the rasp-pi:&amp;nbsp;&lt;A href="https://www.amazon.com/gp/product/B08B6F8QRV/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&amp;amp;psc=1" target="_blank" rel="noopener"&gt;https://www.amazon.com/gp/product/B08B6F8QRV/ref=ppx_yo_dt_b_asin_title_o00_s00?ie=UTF8&amp;amp;psc=1&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="gsanvel_0-1648579146155.png" style="width: 400px;"&gt;&lt;img src="https://www.dropboxforum.com/t5/image/serverpage/image-id/28411i6B45BD602D895BC3/image-size/medium?v=v2&amp;amp;px=400" role="button" title="gsanvel_0-1648579146155.png" alt="gsanvel_0-1648579146155.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 12:35:07 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Raspberry-Pi-File-Transfer-Access-Token-Keeps-Expiring/m-p/587051#M2494</guid>
      <dc:creator>gsanvel</dc:creator>
      <dc:date>2022-03-31T12:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: Raspberry Pi File Transfer: Access Token Keeps Expiring</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Raspberry-Pi-File-Transfer-Access-Token-Keeps-Expiring/m-p/587304#M2495</link>
      <description>&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1530475"&gt;@gsanvel&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Probably the "Access Key (hidding for privacy)" denotes the place for you access token. Take in mind that the access tokens, used in all API calls, validity is limited to 4 hours only! Maybe you have thought to use long lived access token. If so, you have to be aware that such tokens type is obsolete and their generation is dropped already, despite generated can still be used; i.e. you can't create new such token. Replacement of long lived access token is usage of refresh token. Take a look &lt;A href="https://github.com/dropbox/dropbox-sdk-python/blob/main/example/oauth/commandline-oauth-scopes.py#L81" target="_blank" rel="noopener"&gt;here&lt;/A&gt; how you can create a Dropbox client object in such a way.&amp;nbsp;&lt;img class="lia-deferred-image lia-image-emoji" src="https://www.dropboxforum.com/html/@41457EF40051AFF130FDBFE21B496926/emoticons/1f609.png" alt=":winking_face:" title=":winking_face:" /&gt; Once created you can use it in the way you want to.&lt;/P&gt;&lt;P&gt;Unfortunately Dropbox doesn't provide support for ARM hardware (the only exception is Apple's M1). 🤷&lt;/P&gt;&lt;P&gt;Hope this clarifies matter.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Mar 2022 21:49:04 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Raspberry-Pi-File-Transfer-Access-Token-Keeps-Expiring/m-p/587304#M2495</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2022-03-30T21:49:04Z</dc:date>
    </item>
    <item>
      <title>Re: Raspberry Pi File Transfer: Access Token Keeps Expiring</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Raspberry-Pi-File-Transfer-Access-Token-Keeps-Expiring/m-p/587553#M2496</link>
      <description>&lt;P&gt;As&amp;nbsp;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/422790"&gt;@Здравко&lt;/a&gt;&amp;nbsp;mentioned we have examples of OAuth within our python sdk that you can use for reference when implementing refresh tokens.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The SDK handles automatic refreshing of expired short-lived tokens so you do not need to do this on your own. You can see those examples of OAuth &lt;A href="https://github.com/dropbox/dropbox-sdk-python#examples" target="_self"&gt;here&lt;/A&gt;.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 31 Mar 2022 19:09:18 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/Raspberry-Pi-File-Transfer-Access-Token-Keeps-Expiring/m-p/587553#M2496</guid>
      <dc:creator>tahsini</dc:creator>
      <dc:date>2022-03-31T19:09:18Z</dc:date>
    </item>
  </channel>
</rss>

