<?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 get access token without authorization code in c# in Discuss Dropbox Developer &amp; API</title>
    <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-get-access-token-without-authorization-code-in-c/m-p/667938#M3264</link>
    <description>&lt;P&gt;It is not possible to automatically/programmatically get an access token using just the app key/secret. The app authorization flow needs to be done manually by the user at least once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find &lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens#updating-access-token-type" target="_blank" rel="noopener noreferrer"&gt;more information on this migration here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the &lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank" rel="noopener noreferrer"&gt;OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank" rel="noopener noreferrer"&gt;authorization documentation&lt;/A&gt;. There's a basic outline of processing this flow in &lt;A href="https://dropbox.tech/developers/using-oauth-2-0-with-offline-access" target="_blank" rel="noopener noreferrer"&gt;this blog post&lt;/A&gt; which may serve as a useful example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using .NET, we recommend using &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" rel="noopener noreferrer" target="_blank"&gt;the official Dropbox API v2 .NET SDK&lt;/A&gt;.&amp;nbsp;When you use the official Dropbox API v2 .NET SDK, you do not need to implement all of the code for the OAuth flow yourself. The SDK will do most of the work for you. You can find &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/tree/main/dropbox-sdk-dotnet/Examples" rel="noopener noreferrer" target="_blank"&gt;examples of using this here&lt;/A&gt;.&lt;/P&gt;</description>
    <pubDate>Tue, 14 Mar 2023 18:51:28 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2023-03-14T18:51:28Z</dc:date>
    <item>
      <title>how to get access token without authorization code in c#</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-get-access-token-without-authorization-code-in-c/m-p/667936#M3263</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is there any way to generate access token without getting authorization code using only client id and secret key in asp .net core c#? I need only access token to do operations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;or how to get access token with no expiration&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks in advance&lt;/P&gt;
&lt;P&gt;Regards,&lt;/P&gt;
&lt;P&gt;Amit Gaur&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 21:40:11 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-get-access-token-without-authorization-code-in-c/m-p/667936#M3263</guid>
      <dc:creator>amitgaur</dc:creator>
      <dc:date>2023-03-14T21:40:11Z</dc:date>
    </item>
    <item>
      <title>Re: how to get access token without authorization code in c#</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-get-access-token-without-authorization-code-in-c/m-p/667938#M3264</link>
      <description>&lt;P&gt;It is not possible to automatically/programmatically get an access token using just the app key/secret. The app authorization flow needs to be done manually by the user at least once.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Dropbox is no longer offering the option for creating new long-lived access tokens. Dropbox is now issuing short-lived access tokens (and optional refresh tokens) instead of long-lived access tokens. You can find &lt;A href="https://dropbox.tech/developers/migrating-app-permissions-and-access-tokens#updating-access-token-type" target="_blank" rel="noopener noreferrer"&gt;more information on this migration here&lt;/A&gt;.&lt;BR /&gt;&lt;BR /&gt;Apps can still get long-term access by requesting "offline" access though, in which case the app receives a "refresh token" that can be used to retrieve new short-lived access tokens as needed, without further manual user intervention. You can find more information in the &lt;A href="https://developers.dropbox.com/oauth-guide" target="_blank" rel="noopener noreferrer"&gt;OAuth Guide&lt;/A&gt; and &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#authorization" target="_blank" rel="noopener noreferrer"&gt;authorization documentation&lt;/A&gt;. There's a basic outline of processing this flow in &lt;A href="https://dropbox.tech/developers/using-oauth-2-0-with-offline-access" target="_blank" rel="noopener noreferrer"&gt;this blog post&lt;/A&gt; which may serve as a useful example.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;If you're using .NET, we recommend using &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet" rel="noopener noreferrer" target="_blank"&gt;the official Dropbox API v2 .NET SDK&lt;/A&gt;.&amp;nbsp;When you use the official Dropbox API v2 .NET SDK, you do not need to implement all of the code for the OAuth flow yourself. The SDK will do most of the work for you. You can find &lt;A href="https://github.com/dropbox/dropbox-sdk-dotnet/tree/main/dropbox-sdk-dotnet/Examples" rel="noopener noreferrer" target="_blank"&gt;examples of using this here&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Mar 2023 18:51:28 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-get-access-token-without-authorization-code-in-c/m-p/667938#M3264</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-03-14T18:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: how to get access token without authorization code in c#</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-get-access-token-without-authorization-code-in-c/m-p/668143#M3265</link>
      <description>&lt;P&gt;Dear Team,&lt;BR /&gt;Thank you for your reply. On my system, if dropbox desktop app is already logged in, is there any way to create document link using code without login or can I get new access token using any api without asking credential from user.&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Harsh&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 11:14:36 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-get-access-token-without-authorization-code-in-c/m-p/668143#M3265</guid>
      <dc:creator>harshatupwork</dc:creator>
      <dc:date>2023-03-15T11:14:36Z</dc:date>
    </item>
    <item>
      <title>Re: how to get access token without authorization code in c#</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-get-access-token-without-authorization-code-in-c/m-p/668161#M3266</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1641098"&gt;@harshatupwork&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... On my system, if dropbox desktop app is already logged in, is there any way to create document link using code without login ...&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/1641098"&gt;@harshatupwork&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;Such a feature is supported on Linux only by now. So, if your system is Linux, then Yes, otherwise - No.&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/1641098"&gt;@harshatupwork&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;&lt;P&gt;... can I get new access token using any api without asking credential from user.&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;No, there is no way to get either access or refresh token without user be asked. It's partially available on mobile devices only. There the user only need to agree without need to enter again id/email and password, when already logged in to the Dropbox application.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 12:08:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-get-access-token-without-authorization-code-in-c/m-p/668161#M3266</guid>
      <dc:creator>Здравко</dc:creator>
      <dc:date>2023-03-15T12:08:52Z</dc:date>
    </item>
    <item>
      <title>Re: how to get access token without authorization code in c#</title>
      <link>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-get-access-token-without-authorization-code-in-c/m-p/668195#M3267</link>
      <description>&lt;P&gt;&lt;a href="https://www.dropboxforum.com/t5/user/viewprofilepage/user-id/1641098"&gt;@harshatupwork&lt;/a&gt; As Здравко mentioned, there are some command line options for communicating directly with the Dropbox desktop client on Linux only. You can find &lt;A href="https://help.dropbox.com/installs/linux-commands#commands" target="_blank" rel="noopener"&gt;the information for that here&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Otherwise, you'll need to use the API and authorization flow as documented in the resources in my previous message in this thread.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Mar 2023 13:52:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Discuss-Dropbox-Developer-API/how-to-get-access-token-without-authorization-code-in-c/m-p/668195#M3267</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2023-03-15T13:52:33Z</dc:date>
    </item>
  </channel>
</rss>

