<?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: How to use the &amp;quot;App Key&amp;quot; and &amp;quot;App Secret&amp;quot; parameters with the PowerShell Inv in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-the-quot-App-Key-quot-and-quot-App-Secret-quot/m-p/667510#M30200</link>
    <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1634129"&gt;@jbaleta&lt;/a&gt;&amp;nbsp;Здравко is correct; for long-term access, you should use a refresh token. Refresh tokens don't expire and can be re-used repeatedly without manual user interaction. It's not possible to automatically access an account using only the app key and secret. You can find more information in the following resources:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank" rel="noopener noreferrer"&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" rel="noopener noreferrer"&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/migrating-app-permissions-and-access-tokens#updating-access-token-type" target="_blank" rel="nofollow noopener noreferrer"&gt;https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens#updating-access-token-ty...&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" rel="nofollow noopener noreferrer"&gt;https://dropbox.tech/developers/using-oauth-2-0-with-offline-access&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;We recommend using one of the official SDKs whenever possible though, as they'll do most of this work for you.&lt;/P&gt;</description>
    <pubDate>Mon, 13 Mar 2023 16:09:12 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-03-13T16:09:12Z</dc:date>
    <item>
      <title>How to use the "App Key" and "App Secret" parameters with the PowerShell Invoke-RestMethod command?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-the-quot-App-Key-quot-and-quot-App-Secret-quot/m-p/666956#M30188</link>
      <description>&lt;P&gt;Good afternoon.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am currently connecting to Dropbox via PowerShell using the Invoke-RestMethod command and using the "Generated Access Token". Currently the problem that I am presenting is that daily the "Generated access token" changes and I have to modify the PowerShell Script. Is there a way that I can use another parameter or token that doesn't change?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I was also checking the parameter "application key" and "App secret". But I haven't figured out how to use it with PowerShell's Invoke-RestMethod command.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I hope you can help me.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Cordially,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Jairo Baleta&lt;/P&gt;</description>
      <pubDate>Fri, 10 Mar 2023 18:35:57 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-the-quot-App-Key-quot-and-quot-App-Secret-quot/m-p/666956#M30188</guid>
      <dc:creator>jbaleta</dc:creator>
      <dc:date>2023-03-10T18:35:57Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the "App Key" and "App Secret" parameters with the PowerShell Inv</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-the-quot-App-Key-quot-and-quot-App-Secret-quot/m-p/667109#M30190</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1634129"&gt;@jbaleta&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... Is there a way that I can use another parameter or token that doesn't change?&lt;/P&gt;&lt;P&gt;...&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/1634129"&gt;@jbaleta&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Yes and No. Yes - You can use refresh token - a non expiring token that you can use till revoke. Access token expires; it stay valid for ~4 hours. No - to call regular API access points you need access token, so you cannot "throw out" it completely. Using refresh token you can regenerate new access token whenever needed and the existing access token, if any, already expired. As a walkthrough you can take a look &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; for 'curl' example; I believe you can 'translate' it to whatever web query tool syntax.&lt;/P&gt;&lt;P&gt;Hope this gives direction.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Mar 2023 13:48:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-the-quot-App-Key-quot-and-quot-App-Secret-quot/m-p/667109#M30190</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-03-11T13:48:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to use the "App Key" and "App Secret" parameters with the PowerShell Inv</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-the-quot-App-Key-quot-and-quot-App-Secret-quot/m-p/667510#M30200</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1634129"&gt;@jbaleta&lt;/a&gt;&amp;nbsp;Здравко is correct; for long-term access, you should use a refresh token. Refresh tokens don't expire and can be re-used repeatedly without manual user interaction. It's not possible to automatically access an account using only the app key and secret. You can find more information in the following resources:&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank" rel="noopener noreferrer"&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" rel="noopener noreferrer"&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/migrating-app-permissions-and-access-tokens#updating-access-token-type" target="_blank" rel="nofollow noopener noreferrer"&gt;https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens#updating-access-token-ty...&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" rel="nofollow noopener noreferrer"&gt;https://dropbox.tech/developers/using-oauth-2-0-with-offline-access&lt;/A&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;We recommend using one of the official SDKs whenever possible though, as they'll do most of this work for you.&lt;/P&gt;</description>
      <pubDate>Mon, 13 Mar 2023 16:09:12 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-use-the-quot-App-Key-quot-and-quot-App-Secret-quot/m-p/667510#M30200</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-03-13T16:09:12Z</dc:date>
    </item>
  </channel>
</rss>

