<?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: Is linking necessary to download files? in Dropbox API Support &amp; Feedback</title>
    <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156173#M5223</link>
    <description>&lt;P&gt;No problem. To elaborate a bit on the security concerns, note that client-side applications can't keep secrets, meaning that any access token stored in a distributed app could be extracted directly, or sniffed in transit. That means that a malicious user could get the access token, and use it to access the Dropbox API directly, bypassing any access controls your app attempted to enforce. They could even replace the files with other data, or revoke the access token entirely, breaking the integration for all of your users.&lt;/P&gt;
&lt;P&gt;Anyway, I can't speak to any concerns with getting your app on the App Store. You'd have to refer to Apple for that.&lt;/P&gt;
&lt;P&gt;Using the API would certainly be a useful way to download files and watch for when they change. As an alternative, you could use the etag header value returned on shared links, but that's not officially documented.&lt;/P&gt;</description>
    <pubDate>Wed, 06 Jan 2016 07:06:06 GMT</pubDate>
    <dc:creator>Greg-DB</dc:creator>
    <dc:date>2016-01-06T07:06:06Z</dc:date>
    <item>
      <title>Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156170#M5220</link>
      <description>&lt;P&gt;Is it possible to download files from my app folder (Dropbox) to my app without linking an account? If so, how would I do that?&lt;/P&gt;</description>
      <pubDate>Wed, 29 May 2019 09:37:00 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156170#M5220</guid>
      <dc:creator>Ghulam A.</dc:creator>
      <dc:date>2019-05-29T09:37:00Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156171#M5221</link>
      <description>&lt;P&gt;[Cross-linking for reference:&amp;nbsp;&lt;A href="https://stackoverflow.com/questions/34603685/how-to-download-files-to-app-from-app-folder-without-linking-an-account-via-drop" rel="nofollow noreferrer"&gt;https://stackoverflow.com/questions/34603685/how-to-download-files-to-app-from-app-folder-without-linking-an-account-via-drop&lt;/A&gt; ]&lt;/P&gt;
&lt;P&gt;Based on the additional information you posted in your StackOverflow question, it sounds like you just want your app to connect to your own Dropbox account, as opposed to the accounts of your end-users.&lt;/P&gt;
&lt;P&gt;The API was designed with the intention that each user would link their own Dropbox account, in order to interact with their own files. However, it is technically possible to connect to just one account. The SDKs don't offer explicit support for it and we don't recommend doing so, for various technical and security reasons.&lt;/P&gt;
&lt;P&gt;However if you did want to go this route, instead of kicking off the authorization flow, you would use an existing access token for your account and app. (Just be careful not to revoke it, e.g. via &lt;A href="https://www.dropbox.com/account/security" rel="nofollow noreferrer"&gt;https://www.dropbox.com/account/security&lt;/A&gt; .) Also, note that while embedding an access token isn't great, you definitely shouldn't embed your username and password.&lt;/P&gt;
&lt;P&gt;For reference, here are some other similar questions on StackOverflow where I've posted answers:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://stackoverflow.com/questions/15014001/allow-dropbox-api-to-access-my-account-on-users-device" rel="nofollow noreferrer"&gt;https://stackoverflow.com/questions/15014001/allow-dropbox-api-to-access-my-account-on-users-device&lt;/A&gt;&lt;BR /&gt;&lt;A href="https://stackoverflow.com/questions/27834922/auto-login-dropbox-account-on-core-api-without-login-prompt" rel="nofollow noreferrer"&gt;https://stackoverflow.com/questions/27834922/auto-login-dropbox-account-on-core-api-without-login-prompt&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 02:13:23 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156171#M5221</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-01-06T02:13:23Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156172#M5222</link>
      <description>&lt;P&gt;Thank you so much! I looked through your previous answers and I think I got it. I'll try implementing it when I get home. I saw that you cited security concerns. I would of course only be downloading non-personal PDFs and Word documents. (Informational packets and forms)&lt;/P&gt;
&lt;P&gt;There wouldn't be any problem getting my app approved to the App Store would there? Also, are there any alternate solutions that would allow me to check each file individually in a folder and only download it if it has been updated?&lt;/P&gt;
&lt;P&gt;My goal is to check every file in the folder and decide whether or not download it without explicitly knowing what the file is. (So I can add and remove files from the folder if needed) That's why I was straying away from explicit share links.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 06:10:14 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156172#M5222</guid>
      <dc:creator>Ghulam A.</dc:creator>
      <dc:date>2016-01-06T06:10:14Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156173#M5223</link>
      <description>&lt;P&gt;No problem. To elaborate a bit on the security concerns, note that client-side applications can't keep secrets, meaning that any access token stored in a distributed app could be extracted directly, or sniffed in transit. That means that a malicious user could get the access token, and use it to access the Dropbox API directly, bypassing any access controls your app attempted to enforce. They could even replace the files with other data, or revoke the access token entirely, breaking the integration for all of your users.&lt;/P&gt;
&lt;P&gt;Anyway, I can't speak to any concerns with getting your app on the App Store. You'd have to refer to Apple for that.&lt;/P&gt;
&lt;P&gt;Using the API would certainly be a useful way to download files and watch for when they change. As an alternative, you could use the etag header value returned on shared links, but that's not officially documented.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 07:06:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156173#M5223</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-01-06T07:06:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156174#M5224</link>
      <description>&lt;P&gt;Do you know of any way to encrypt the access key that would fit the way I'm using it?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 08:41:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156174#M5224</guid>
      <dc:creator>Ghulam A.</dc:creator>
      <dc:date>2016-01-06T08:41:56Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156175#M5225</link>
      <description>&lt;P&gt;There are any number of ways obfuscate or encrypt it, but it's impossible to actually protect a secret in a client-side application. (E.g., if you encrypt it, the encryption key eventually needs to be on the device too, and so can be similarly stolen, etc.) No matter what, an attacker could extract the secret from the app. Or, even if the access token is encrypted at rest, they could just perform a man in the middle attack and pull the access token out as it goes over the network when making actual API calls.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 08:49:01 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156175#M5225</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-01-06T08:49:01Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156176#M5226</link>
      <description>&lt;P&gt;Okay, I'll figure that out. I know how to get my access token. How do I retrieve my access token secret or is it just the app secret?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 10:35:53 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156176#M5226</guid>
      <dc:creator>Ghulam A.</dc:creator>
      <dc:date>2016-01-06T10:35:53Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156177#M5227</link>
      <description>&lt;P&gt;Also where can I find my user id?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 10:39:50 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156177#M5227</guid>
      <dc:creator>Ghulam A.</dc:creator>
      <dc:date>2016-01-06T10:39:50Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156178#M5228</link>
      <description>&lt;P&gt;The access token secret is not the same thing as the app secret.&lt;/P&gt;
&lt;P&gt;If you're using OAuth 1, the access token secret is the "oauth_token_secret" returned by&amp;nbsp;&lt;A href="https://www.dropbox.com/developers-v1/core/docs#access-token" target="_blank" rel="nofollow noreferrer"&gt;/oauth/access_token&lt;/A&gt;.&lt;/P&gt;
&lt;P&gt;If you're using OAuth 2, the access token is just one string, and doesn't have a separate "secret" portion.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:11:48 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156178#M5228</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-01-06T11:11:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156179#M5229</link>
      <description>&lt;P&gt;You can get your user ID from the account information API call (&lt;A href="https://www.dropbox.com/developers-v1/core/docs#account-info" target="_blank" rel="nofollow noreferrer"&gt;/account/info&lt;/A&gt; on v1, or &lt;A href="https://www.dropbox.com/developers/documentation/http/documentation#users-get_current_account" target="_blank" rel="nofollow noreferrer"&gt;/users/get_current_account&lt;/A&gt; on v2).&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:13:02 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156179#M5229</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-01-06T11:13:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156180#M5230</link>
      <description>&lt;P&gt;Can you explain how to use /oauth/access_token and /account/info and /users/get_current_account? I also don't know how to tell if I'm using Oauth 1 or 2 and V1 or V2. I apologize as I am somewhat new to all that.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:19:10 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156180#M5230</guid>
      <dc:creator>Ghulam A.</dc:creator>
      <dc:date>2016-01-06T11:19:10Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156181#M5231</link>
      <description>&lt;P&gt;Are you using an SDK or library? If so, which?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:21:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156181#M5231</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-01-06T11:21:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156182#M5232</link>
      <description>&lt;P&gt;I'm using the sdk following the tutorial on&amp;nbsp;&lt;A href="https://www.dropbox.com/developers-v1/core/start/ios" rel="nofollow noreferrer"&gt;https://www.dropbox.com/developers-v1/core/start/ios&lt;/A&gt;&amp;nbsp;which I now see has v1 in the URL but if you could explain that still, that would be great.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:28:06 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156182#M5232</guid>
      <dc:creator>Ghulam A.</dc:creator>
      <dc:date>2016-01-06T11:28:06Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156183#M5233</link>
      <description>&lt;P&gt;That SDK uses OAuth 1 and version 1 of the&amp;nbsp;Dropbox API, a.k.a. the Core API. The DBRestClient.loadAccountInfo method corresponds to /account/info.&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:32:21 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156183#M5233</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-01-06T11:32:21Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156184#M5234</link>
      <description>&lt;P&gt;Okay so I'd put this somewhere:&lt;/P&gt;
&lt;P&gt;DBRestClient.loadAccountInfo;&lt;/P&gt;
&lt;P&gt;How would I view/retrieve the resulting info?&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 11:35:52 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156184#M5234</guid>
      <dc:creator>Ghulam A.</dc:creator>
      <dc:date>2016-01-06T11:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156185#M5235</link>
      <description>&lt;P&gt;What is the corresponding function to get the access token secret? And is the access token you can generate from the account page the correct one to use with V1 or is it only for V2? (It doesn't give a token secret.)&lt;/P&gt;</description>
      <pubDate>Wed, 06 Jan 2016 15:00:39 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156185#M5235</guid>
      <dc:creator>Ghulam A.</dc:creator>
      <dc:date>2016-01-06T15:00:39Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156186#M5236</link>
      <description>&lt;P&gt;I&amp;nbsp;recommend working through the &lt;A href="https://www.dropbox.com/developers-v1/core/start/ios" target="_blank" rel="nofollow noreferrer"&gt;tutorial&lt;/A&gt; to see how to call methods in that SDK. For example:&lt;/P&gt;
&lt;PRE&gt;[self.restClient loadMetadata:@"/"];&lt;/PRE&gt;
&lt;P&gt;So, using&amp;nbsp;loadAccountInfo would look something like:&lt;/P&gt;
&lt;PRE&gt;[self.restClient loadAccountInfo];&lt;/PRE&gt;
&lt;P&gt;And you'd need to implement these delegate methods to get the response:&lt;/P&gt;
&lt;PRE&gt;- (void)restClient:(DBRestClient*)client loadedAccountInfo:(DBAccountInfo*)info;&lt;BR /&gt;- (void)restClient:(DBRestClient*)client loadAccountInfoFailedWithError:(NSError*)error; &lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The App Console only lets you generate an OAuth 2 access token, so that wouldn't suit your needs, as you need an OAuth 1 access token. You can get that by implementing the app authorization flow per the tutorial just to use for your account, and then pulling the access token out using DBSession.credentialStoreForUserId. (Again though, I should emphasize that this is not a recommended way of using the API, which is why this isn't particularly easy. If you just need to distribute content to the users of your app, a CDN might be a better solution.)&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 02:00:58 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156186#M5236</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-01-07T02:00:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156187#M5237</link>
      <description>&lt;P&gt;I figured out how to get the user id. All I need is the access token with secret and I'll be set. I'm not sure where to implement DBSession.credentialStoreForUserID though. I'm doing this within the example DBRoulette Xcode project.&amp;nbsp;Would I call it like this?&lt;/P&gt;
&lt;PRE class="p1"&gt;&lt;SPAN class="s1"&gt;[[&lt;/SPAN&gt;&lt;SPAN class="s2"&gt;DBSession&lt;/SPAN&gt; &lt;SPAN class="s3"&gt;sharedSession&lt;/SPAN&gt;&lt;SPAN class="s1"&gt;] credentialStoreForUserID];&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P class="p1"&gt;Where would I put that and how&amp;nbsp;would I retrieve the value for the access token? The most I can find online is this in terms of getting a value and I don't know where I would put that either.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE&gt;DBSession.sharedSession().credentialStoreForUserId(userId).accessToken&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&lt;CODE&gt;If you could use the DBRoulette project for reference, that would help a lot.&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt; By the way, thank you for sticking with me. I understand that this is not intended use, but I still wish the documentation was more straightforward. I don't see anything about access tokens in the tutorial you linked. I did follow that earlier for setting up my actual app.&lt;/CODE&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Jan 2016 10:24:32 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156187#M5237</guid>
      <dc:creator>Ghulam A.</dc:creator>
      <dc:date>2016-01-07T10:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156188#M5238</link>
      <description>&lt;P&gt;You just need to call&amp;nbsp;credentialStoreForUserID once to get your access token/secret, which you can do anywhere in the app, as long as the account is already linked. That would look like:&lt;/P&gt;
&lt;PRE&gt; MPOAuthCredentialConcreteStore *creds = [[DBSession sharedSession] credentialStoreForUserId:@"12345"];&lt;BR /&gt; NSLog(@"access token key: %@ secret: %@", creds.accessToken, creds.accessTokenSecret);&lt;/PRE&gt;
&lt;P&gt;(Where&amp;nbsp;12345 is your user ID.)&lt;/P&gt;</description>
      <pubDate>Fri, 08 Jan 2016 02:11:09 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156188#M5238</guid>
      <dc:creator>Greg-DB</dc:creator>
      <dc:date>2016-01-08T02:11:09Z</dc:date>
    </item>
    <item>
      <title>Re: Is linking necessary to download files?</title>
      <link>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156189#M5239</link>
      <description>&lt;P&gt;Okay, that did allow me to get an access token and secret. However, I still don't seem to be able to retrieve a file from my folder using this method. If I login normally to link my dropbox, it does work. (I basically pull a text file from my Dropbox and display the text.) I'm not sure what I'm doing wrong here. The one thing I did notice was that I get a new access token and secret every time I login normally. Do the tokens expire? Anyways, here is my code cutting out irrelevant portions and replacing sensitive info:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In my app delegate:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;.h&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE class="p1"&gt;#import &amp;lt;UIKit/UIKit.h&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;@interface AppDelegate : NSObject &amp;lt;UIApplicationDelegate&amp;gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;@property (strong, nonatomic) UIWindow *window;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;@end&amp;nbsp;&lt;/PRE&gt;
&lt;P&gt;&lt;STRONG&gt;.m&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE class="p1"&gt;#import "AppDelegate.h"&lt;BR /&gt;#import &amp;lt;DropboxSDK/DropboxSDK.h&amp;gt;&lt;BR /&gt;&lt;BR /&gt;@implementation AppDelegate&lt;BR /&gt;&lt;BR /&gt;- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions&lt;BR /&gt;{&lt;BR /&gt; DBSession *dbSession = [[DBSession alloc]&lt;BR /&gt; initWithAppKey:@"key"&lt;BR /&gt; appSecret:@"secret"&lt;BR /&gt; root:kDBRootAppFolder]; // either kDBRootAppFolder or kDBRootDropbox&lt;BR /&gt; [DBSession setSharedSession:dbSession];&lt;BR /&gt; &lt;BR /&gt; //[[DBSession sharedSession] unlinkAll];&lt;BR /&gt; [dbSession updateAccessToken:@"token" accessTokenSecret:@"token secret" forUserId:@"id number"];&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;@end&lt;/PRE&gt;
&lt;P class="p1"&gt;In my view controller:&lt;/P&gt;
&lt;P&gt;&lt;STRONG&gt;.h file&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE class="p1"&gt;&lt;SPAN class="s2"&gt;#import &amp;lt;UIKit/UIKit.h&amp;gt;&lt;BR /&gt;&lt;BR /&gt;@class DBRestClient;&lt;BR /&gt;&lt;BR /&gt;@interface homeVC : UIViewController&lt;BR /&gt;{&lt;BR /&gt; DBRestClient *restClient;&lt;BR /&gt;}&lt;BR /&gt;&lt;BR /&gt;@end&lt;BR /&gt;&lt;/SPAN&gt;&lt;/PRE&gt;
&lt;P class="p1"&gt;&lt;STRONG&gt;.m file&lt;/STRONG&gt;&lt;/P&gt;
&lt;PRE class="p1"&gt;#import "homeVC.h"&lt;BR /&gt;#import &amp;lt;DropboxSDK/DropboxSDK.h&amp;gt;&lt;BR /&gt;&lt;BR /&gt;@interface homeVC () &amp;lt;UITableViewDataSource, UIAccelerometerDelegate, DBRestClientDelegate&amp;gt;&lt;BR /&gt;&lt;BR /&gt;@property (weak, nonatomic) IBOutlet UITableView *tableView;&lt;BR /&gt;&lt;BR /&gt;@property (nonatomic, strong) DBRestClient *restClient;&lt;BR /&gt;&lt;BR /&gt;@end&lt;BR /&gt;&lt;BR /&gt;@implementation homeVC&lt;BR /&gt;&lt;BR /&gt;- (void)viewDidLoad&lt;BR /&gt;{&lt;BR /&gt; [super viewDidLoad];&lt;BR /&gt; &lt;BR /&gt; NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,&lt;BR /&gt; NSUserDomainMask, YES);&lt;BR /&gt; NSString *documentsDirectory = [paths objectAtIndex:0];&lt;BR /&gt; NSString* path2 = [documentsDirectory stringByAppendingPathComponent:&lt;BR /&gt; [NSString stringWithFormat:@"%@", @"Welcome.txt"]];&lt;BR /&gt; &lt;BR /&gt; [self.restClient loadMetadata:@"/"];&lt;BR /&gt; [self.restClient loadFile:@"/Welcome.txt" intoPath:path2];&lt;BR /&gt; &lt;BR /&gt; NSString* content = [NSString stringWithContentsOfFile:path2&lt;BR /&gt; encoding:NSUTF8StringEncoding&lt;BR /&gt; error:NULL];&lt;BR /&gt; NSLog(@"%@",content);&lt;BR /&gt;}&lt;/PRE&gt;</description>
      <pubDate>Sat, 09 Jan 2016 10:13:56 GMT</pubDate>
      <guid>https://www.dropboxforum.com/t5/Dropbox-API-Support-Feedback/Is-linking-necessary-to-download-files/m-p/156189#M5239</guid>
      <dc:creator>Ghulam A.</dc:creator>
      <dc:date>2016-01-09T10:13:56Z</dc:date>
    </item>
  </channel>
</rss>

