dropbox-api


Dropbox Api v2 - confusion with cursor and paging for list_folders

烈酒焚心 提交于 2020-01-25 05:12:04
问题 The files/list _folders method in api docs has the following for the description of the cursor parameter: cursor - Pass the cursor into list_folder/continue to see what's changed in the folder since your previous query. has_more - If true, then there are more entries available. Pass the cursor to list_folder/continue to retrieve the rest. https://www.dropbox.com/developers/documentation/http/documentation#files-list_folder Which is it then? If I make another request to list_folders_continue

using dropbox as a server for my django app

喜夏-厌秋 提交于 2020-01-23 05:48:27
问题 I dont know if at all i make any sense, but this popped up in my mind. Can we use the 2gb free hosting of dropbox to put our django app over there and do some hacks to run our app? 回答1: The point you need to understand is: can you run django without djagno installed? Can django be installed on a usb-drive? Dropbox is but a cloud storage service NOT cloud hosting service. To store you do not require RAM and processors while for hosting you do. Hence the answer is NO. If you are okay with

Storing API keys in Android, is obfustication enough?

為{幸葍}努か 提交于 2020-01-22 18:47:09
问题 I'm using the Dropbox API. In the sample app, it includes these lines: // Replace this with your consumer key and secret assigned by Dropbox. // Note that this is a really insecure way to do this, and you shouldn't // ship code which contains your key & secret in such an obvious way. // Obfuscation is good. final static private String CONSUMER_KEY = "PUT_YOUR_CONSUMER_KEY_HERE"; final static private String CONSUMER_SECRET = "PUT_YOUR_CONSUMER_SECRET_HERE"; I'm well aware of the mantra

Storing API keys in Android, is obfustication enough?

廉价感情. 提交于 2020-01-22 18:46:07
问题 I'm using the Dropbox API. In the sample app, it includes these lines: // Replace this with your consumer key and secret assigned by Dropbox. // Note that this is a really insecure way to do this, and you shouldn't // ship code which contains your key & secret in such an obvious way. // Obfuscation is good. final static private String CONSUMER_KEY = "PUT_YOUR_CONSUMER_KEY_HERE"; final static private String CONSUMER_SECRET = "PUT_YOUR_CONSUMER_SECRET_HERE"; I'm well aware of the mantra

Dropbox Datastore to API 2 Migration Error

邮差的信 提交于 2020-01-22 02:06:53
问题 I'm trying to provide a way in my iOS app to migrate existing Datastore users to a new means of storing an SQLite database file on Dropbox via the new v2 API (SwiftyDropbox). I'm currently trying to let them connect to Dropbox with the old Datastore API with: let accountManager = DBAccountManager.init(appKey: "...", secret: "...") DBAccountManager.setSharedManager(accountManager) DBAccountManager.sharedManager().linkFromController(self) I am then taken to the Dropbox app on my phone where I

Dropbox Core API for file uploads

拈花ヽ惹草 提交于 2020-01-17 13:49:10
问题 I run a service that is visited by its users to generate PDF documents that are then delivered to them by email. I am in the process of exploring an alternative delivery route - popping the prepared document directly in a Dropbox folder that they designate. After a spot of research I discovered the Dropbox API and then played with their "explorer" here. Examining the cURL they generate to perform a file upload I found that it could quite easily be done with a spot of PHP. After creating a new

Getting Request Token From Dropbox OAuth “Invalid OAuth Request”

╄→尐↘猪︶ㄣ 提交于 2020-01-17 08:22:47
问题 I'm trying to get a response data from dropbox oauth as described here Now i dont know why it keeps saying {"error": "Invalid OAuth request."} Here is a my complete code for requesting token: -(void)requestTokenSecret { NSString* oauthVersion=@"1"; NSString* oauth_signature_method=@"PLAINTEXT"; NSString* postHeader = [NSString stringWithFormat: @"Authorization: OAuth oauth_version=\"%@\", oauth_signature_method=\"%@\", oauth_consumer_key=\"%@\", oauth_signature=\"%@&\"",oauthVersion,oauth

HTTPError finishing the OAuth2 flow with Dropbox SDK v 3.42 for Python

僤鯓⒐⒋嵵緔 提交于 2020-01-16 13:18:06
问题 In SDK version 3.41 there was a bug that prevented the finish method of DropboxOAuth2FlowNoRedirect to actually finish. I asked about this here yesterday. After I updated to version 3.42, I get a new error. I once again took the code from the Dropbox-documentation and changed it to the following to get a traceback and to be able to execute it outside of a function: # added traceback-import from traceback import format_exc from dropbox import DropboxOAuth2FlowNoRedirect # replaced real key and

HTTPError finishing the OAuth2 flow with Dropbox SDK v 3.42 for Python

老子叫甜甜 提交于 2020-01-16 13:17:15
问题 In SDK version 3.41 there was a bug that prevented the finish method of DropboxOAuth2FlowNoRedirect to actually finish. I asked about this here yesterday. After I updated to version 3.42, I get a new error. I once again took the code from the Dropbox-documentation and changed it to the following to get a traceback and to be able to execute it outside of a function: # added traceback-import from traceback import format_exc from dropbox import DropboxOAuth2FlowNoRedirect # replaced real key and

Dropbox oauth window is not working

£可爱£侵袭症+ 提交于 2020-01-14 13:16:28
问题 I'm porting my application to Electron and I was surprised to find out that the Dropbox authentication doesn't work in this environment. It does work in Chrome though. The sign-in buttons remain disabled and the labels appear over the inputs. The following message is displayed in the console: The Content-Security-Policy directive 'worker-src' is implemented behind a flag which is currently disabled. I'm testing using dropbox@2.5.7, electron@1.7.7 on OS X. I found a similar question, but it

工具导航Map