<?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: refresh token in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/refresh-token/m-p/683646#M3364</link>
    <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1703164"&gt;@Goldmine&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I had integrated drop box in php and its file uploaded successfully, But there is issue of access token which available for short time. How to generate refresh token for it ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1703164"&gt;@Goldmine&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;All new access tokens are short lived (~4 hours typically). As you found out, refresh token can be used to achieve long term access. You can generate such token by hand using procedure like the one, described &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592667" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. Checked and working. &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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1703164"&gt;@Goldmine&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... and integrate in php.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You need to integrate in your php code only the last step, described there (i.e. the refresh step). You have to keep track for the expiration moment (calculated as refresh moment plus "expires_in" time), for every single access token, and when current time passes this expiration moment and you need to perform some API call, refresh the access token as described. It's easier instead of using access token as constant to implement accessor function and use it whenever you're using your token at present, so will be able track the needed refresh moment.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
    <pubDate>Thu, 11 May 2023 12:10:40 GMT</pubDate>
    <dc:creator>Здравко</dc:creator>
    <dc:date>2023-05-11T12:10:40Z</dc:date>
    <item>
      <title>refresh token</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/refresh-token/m-p/683545#M3363</link>
      <description>&lt;P&gt;I had integrated drop box in php and its file uploaded successfully, But there is issue of access token which available for short time. How to generate refresh token for it and integrate in php.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 06:35:16 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/refresh-token/m-p/683545#M3363</guid>
      <dc:creator>Goldmine</dc:creator>
      <dc:date>2023-05-11T06:35:16Z</dc:date>
    </item>
    <item>
      <title>Re: refresh token</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/refresh-token/m-p/683646#M3364</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1703164"&gt;@Goldmine&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;I had integrated drop box in php and its file uploaded successfully, But there is issue of access token which available for short time. How to generate refresh token for it ...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;Hi &lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1703164"&gt;@Goldmine&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;All new access tokens are short lived (~4 hours typically). As you found out, refresh token can be used to achieve long term access. You can generate such token by hand using procedure like the one, described &lt;A href="https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Issue-in-generating-access-token/m-p/592667" target="_blank" rel="noopener"&gt;here&lt;/A&gt;. Checked and working. &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;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1703164"&gt;@Goldmine&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... and integrate in php.&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;You need to integrate in your php code only the last step, described there (i.e. the refresh step). You have to keep track for the expiration moment (calculated as refresh moment plus "expires_in" time), for every single access token, and when current time passes this expiration moment and you need to perform some API call, refresh the access token as described. It's easier instead of using access token as constant to implement accessor function and use it whenever you're using your token at present, so will be able track the needed refresh moment.&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 11 May 2023 12:10:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/refresh-token/m-p/683646#M3364</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-05-11T12:10:40Z</dc:date>
    </item>
    <item>
      <title>Re: refresh token</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/refresh-token/m-p/683672#M3365</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1703164"&gt;@Goldmine&lt;/a&gt; In addition to the information Здравко provided, you can find more resources on this at the following links:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank"&gt;https://developers.dropbox.com/oauth-guide&lt;/A&gt; &lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank"&gt;https://www.dropbox.com/developers/documentation/http/documentation#authorization&lt;/A&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;A href="https://dropbox.tech/developers/using-oauth-2-0-with-offline-access" target="_blank"&gt;https://dropbox.tech/developers/using-oauth-2-0-with-offline-access&lt;/A&gt; &lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Thu, 11 May 2023 13:42:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/refresh-token/m-p/683672#M3365</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-05-11T13:42:01Z</dc:date>
    </item>
  </channel>
</rss>

