<?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 files by DropBoxRest API in C# in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100832#M3012</link>
    <description>&lt;P&gt;Any of the SDKs (ours or third-parties) should be able to read text files from Dropbox.&lt;/P&gt;</description>
    <pubDate>Wed, 04 Mar 2015 04:20:40 GMT</pubDate>
    <dc:creator>Steve M.</dc:creator>
    <dc:date>2015-03-04T04:20:40Z</dc:date>
    <item>
      <title>How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100828#M3008</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;

&lt;P&gt;My goal is to get files by DropBoxRest API in C#&lt;BR /&gt;
Here is my code&lt;/P&gt;

&lt;PRE&gt;&lt;CODE&gt;var options = new Options
    {
        ClientId = "", //App key
        ClientSecret = "", //App secret
        RedirectUri = "https://www.dropbox.com/1/oauth2/authorize"
    };

// Initialize a new Client (without an AccessToken)
var client = new Client(options);

// Get the OAuth Request Url
var authRequestUrl = await client.Core.OAuth2.AuthorizeAsync(access_token which generated in my account);

// TODO: Navigate to authRequestUrl using the browser, and retrieve the Authorization Code from the response
var authCode = ""; Which code have to be here ???

// Exchange the Authorization Code with Access/Refresh tokens
var token = await client.Core.OAuth2.TokenAsync(authCode); in this line occured the following error
  //An unhandled exception of type 'System.AggregateException' occurred in mscorlib.dll      

// Get account info
var accountInfo = await client.Core.Accounts.AccountInfoAsync();
&lt;/CODE&gt;&lt;/PRE&gt;

&lt;P&gt;Please give me an advice&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:44:44 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100828#M3008</guid>
      <dc:creator>Garnik G.</dc:creator>
      <dc:date>2019-05-29T09:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100829#M3009</link>
      <description>&lt;P&gt;It looks like you're using this library: &lt;A href="https://github.com/saguiitay/DropboxRestAPI" rel="nofollow noreferrer"&gt;https://github.com/saguiitay/DropboxRestAPI&lt;/A&gt;.&lt;/P&gt;

&lt;P&gt;You might consider asking the author for help.&lt;/P&gt;

&lt;P&gt;The "authorization code" is generally what gets displayed when you browse to &lt;CODE&gt;https://www.dropbox.com/1/oauth2/authorize?response_type=code&amp;amp;client_id=&amp;lt;YOUR-APP-KEY&amp;gt;&lt;/CODE&gt;. It looks like &lt;CODE&gt;AuthorizeAsync&lt;/CODE&gt; returns that kind of URL, so you should then browse to the URL, get the authorization code displayed there, and use it in the next step. (You'd have to prompt the user somehow to enter the authorization code before proceeding.)&lt;/P&gt;

&lt;P&gt;This code looks like it might be useful for a command-line app? With a web app, you would use redirects to move the user through the OAuth process (e.g. &lt;A href="https://github.com/smarx/othw/tree/master/C%23" rel="nofollow noreferrer"&gt;https://github.com/smarx/othw/tree/master/C%23&lt;/A&gt;), and for a desktop app, you would probably display an embedded browser in the app (e.g. &lt;A href="https://blogs.dropbox.com/developers/2014/04/dropbox-authorization-in-a-windows-store-app/" rel="nofollow noreferrer"&gt;https://blogs.dropbox.com/developers/2014/04/dropbox-authorization-in-a-windows-store-app/&lt;/A&gt;).&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 00:42:25 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100829#M3009</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-03-04T00:42:25Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100830#M3010</link>
      <description>&lt;P&gt;[Cross-linking for reference: &lt;A href="https://stackoverflow.com/questions/28833004/how-to-get-dropbox-files-by-dropboxrest-api-in-c" rel="nofollow noreferrer"&gt;https://stackoverflow.com/questions/28833004/how-to-get-dropbox-files-by-dropboxrest-api-in-c&lt;/A&gt; ]&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 00:45:27 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100830#M3010</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2015-03-04T00:45:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100831#M3011</link>
      <description>&lt;P&gt;There are many libraries in your site for working with DropBox data&lt;BR /&gt;
My goal is to read dropbox .txt files&lt;BR /&gt;
Which is the best way to do that ?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 03:35:43 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100831#M3011</guid>
      <dc:creator>Garnik G.</dc:creator>
      <dc:date>2015-03-04T03:35:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100832#M3012</link>
      <description>&lt;P&gt;Any of the SDKs (ours or third-parties) should be able to read text files from Dropbox.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 04:20:40 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100832#M3012</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-03-04T04:20:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100833#M3013</link>
      <description>&lt;P&gt;Now I'm using the following topic&lt;BR /&gt;
&lt;A href="http://www.b4x.com/android/forum/threads/dropbox-oauth-2-tutorial.19503/" rel="nofollow noreferrer"&gt;http://www.b4x.com/android/forum/threads/dropbox-oauth-2-tutorial.19503/&lt;/A&gt;&lt;BR /&gt;
It's helpful and I can get information from DropBox but there is a question&lt;/P&gt;

&lt;P&gt;Here we need to do a step by hand&lt;/P&gt;

&lt;P&gt;var authorizeUrl = "&lt;A href="https://www.dropbox.com/1/oauth/authorize" rel="nofollow noreferrer"&gt;https://www.dropbox.com/1/oauth/authorize&lt;/A&gt;?" + queryString;&lt;BR /&gt;
Process.Start(authorizeUrl);&lt;/P&gt;

&lt;P&gt;In above code we have to open browser and click to allow in order can go to the next step.&lt;BR /&gt;
I don't think that's user friendly. Is there a way to do it without opening the browser.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 13:48:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100833#M3013</guid>
      <dc:creator>Garnik G.</dc:creator>
      <dc:date>2015-03-04T13:48:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100834#M3014</link>
      <description>&lt;P&gt;A user has to grant your application permission before it can access that user's Dropbox. There's no way to do that without the user interacting with dropbox.com (or the Dropbox app on mobile).&lt;/P&gt;

&lt;P&gt;But once a user has authorized your app once, they never need to do it again.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 13:49:49 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100834#M3014</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-03-04T13:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100835#M3015</link>
      <description>&lt;P&gt;Thank you for the answer.&lt;BR /&gt;
Out project is a desktop application so many users should use the software.&lt;BR /&gt;
If I get the access_token and Secret can we use it always ? or we need to update access_token after some time ?&lt;BR /&gt;
Is it right to get access_token and set as static value in code in order software always can use that value for getting an information ?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:04:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100835#M3015</guid>
      <dc:creator>Garnik G.</dc:creator>
      <dc:date>2015-03-04T14:04:32Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100836#M3016</link>
      <description>&lt;P&gt;Once a user has authorized your app (the first time they use it), you should keep reusing the same access token from then on. But you can't hardcode the access token in the app, because it will be different for each user.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:05:33 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100836#M3016</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-03-04T14:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100837#M3017</link>
      <description>&lt;P&gt;Thank you for the answer.&lt;BR /&gt;
We want to use DropBox as database. All programs should use the same files. So we are going to have a dropbox account and get info from a few softwares. So I think in that case we can hardcode the token, right  ?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:29:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100837#M3017</guid>
      <dc:creator>Garnik G.</dc:creator>
      <dc:date>2015-03-04T14:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100838#M3018</link>
      <description>&lt;P&gt;You &lt;EM&gt;could&lt;/EM&gt; do this, but I would advise against it. Dropbox isn't designed for this kind of account sharing, and anyone who had access to your app would be able to extract the access token and take control of the account (e.g. delete all the files).&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:31:35 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100838#M3018</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-03-04T14:31:35Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100839#M3019</link>
      <description>&lt;P&gt;I totally agree with you. But others users can't have an access to our access_token because they have to use only exe.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:34:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100839#M3019</guid>
      <dc:creator>Garnik G.</dc:creator>
      <dc:date>2015-03-04T14:34:09Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100840#M3020</link>
      <description>&lt;P&gt;If the access token is in the exe file, it can definitely be extracted. (As a potentially easier alternative, a user could just set up an HTTP proxy and look at the Authorization header.)&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:35:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100840#M3020</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-03-04T14:35:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100841#M3021</link>
      <description>&lt;P&gt;Thank you for the answer.&lt;BR /&gt;
Can you please explain this &lt;/P&gt;

&lt;BLOCKQUOTE&gt;
&lt;P&gt;As a potentially easier alternative, a user could just set up an HTTP proxy and look at the Authorization header&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:38:22 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100841#M3021</guid>
      <dc:creator>Garnik G.</dc:creator>
      <dc:date>2015-03-04T14:38:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100842#M3022</link>
      <description>&lt;P&gt;I mean that if a user wants to get the access token, they can just run an HTTP proxy (like Fiddler2) and see the Authorization header your app is sending to Dropbox. The access token will be plainly visible there.&lt;/P&gt;

&lt;P&gt;My general point is that if you put the access token in the app, users can get it.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:39:30 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100842#M3022</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-03-04T14:39:30Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100843#M3023</link>
      <description>&lt;P&gt;Thanks. Ok. So what you advice ? how we can use dropbox in this case?&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:42:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100843#M3023</guid>
      <dc:creator>Garnik G.</dc:creator>
      <dc:date>2015-03-04T14:42:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100844#M3024</link>
      <description>&lt;P&gt;My advice would be to not use Dropbox. The Dropbox API is primarily meant to be used in apps where each user will access his or her own account.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:43:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100844#M3024</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2015-03-04T14:43:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100845#M3025</link>
      <description>&lt;P&gt;Thanks. But I have no choice to create new API and I have no other server. So I don't know what can I do except of DropBox&lt;/P&gt;</description>
      <pubDate>Wed, 04 Mar 2015 14:46:19 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100845#M3025</guid>
      <dc:creator>Garnik G.</dc:creator>
      <dc:date>2015-03-04T14:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100846#M3026</link>
      <description>&lt;P&gt;hi All&lt;/P&gt;
&lt;P&gt;I.m getting the following error&lt;/P&gt;
&lt;P&gt;Dropbox Rest API.Services.Core.OAuth2 does not contain definition for AuthorizeAsync&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 17:11:38 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100846#M3026</guid>
      <dc:creator>Velmurugan N.</dc:creator>
      <dc:date>2016-08-31T17:11:38Z</dc:date>
    </item>
    <item>
      <title>Re: How to get files by DropBoxRest API in C#</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100847#M3027</link>
      <description>&lt;P&gt;Velmurugan, please&amp;nbsp;&lt;A href="https://www.dropboxforum.com/hc/en-us/community/topics/200209245-API-Development?sort_by=recent_activity" target="_blank" rel="nofollow noreferrer"&gt;post a new question&lt;/A&gt;&amp;nbsp;instead of replying to&amp;nbsp;an old thread.&lt;/P&gt;</description>
      <pubDate>Wed, 31 Aug 2016 20:46:59 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/How-to-get-files-by-DropBoxRest-API-in-C/m-p/100847#M3027</guid>
      <dc:creator>Steve M.</dc:creator>
      <dc:date>2016-08-31T20:46:59Z</dc:date>
    </item>
  </channel>
</rss>

