dropbox-api

Use of dropbox with core APIs, but avoiding login page

那年仲夏 提交于 2019-12-09 23:25:42
问题 I want to use Dropbox for my file share application, using Core Dropbox APIs. I am using OAuth 2.0 APIs for authentication (Implicit Grant Method). The issue is, In order to obtain the access token, I need to be logged-in to dropbox account or it redirects me to Dropbox login page. I don't want my users to enter the login crediantials. Is there any way to avoid login process, and directly get access token?? Or Alternatively can I do login using some login api in backend, without user

Can Dropbox Saver accept data from createObjectURL()?

半世苍凉 提交于 2019-12-09 22:32:35
问题 The Dropbox Chooser and Saver tools seem very cool for these two tasks: Let the user pick a file from their Dropbox, and the page can download it (i.e., Dropbox-to-client). Let the user choose a destination in their Dropbox to which to save a file sitting at some URL on a server (i.e., server-to-Dropbox). That's asymmetrical. This StackOverflow question asks if it's possible to send a file to Dropbox Saver directly from the client. (This is especially handy if one is writing a client-side

How to overwrite file with parent rev using Dropbox API in iOS?

寵の児 提交于 2019-12-09 15:34:38
问题 I am developing an iOS application using Dropbox API. While uploading a file using the dropbox API, I just want to overwrite the existing file with the same name. How can I set the parent rev and what value? Thanks! 回答1: Get all the files in the directory with [[self restclient] loadMetadata:@"/"] in the delegate - (void)restClient:(DBRestClient *)client loadedMetadata:(DBMetadata *)metadata you get all the details of each file. Scan through all the files with file name of your interest and

android Dropbox sync api upload file and display progress bar

微笑、不失礼 提交于 2019-12-08 07:40:44
问题 My app look like the Dropbox Notes example from Dropbox sync sdk, except I want to display a progress bar in listview when uploading new file to Dropbox. The example listen text file change to update file, but in my case, I upload many file types (text and binary). Here is my try to upload file: DbxPath path = new DbxPath("/test.pdf"); DbxAccount acct = NotesAppConfig.getAccountManager(getActivity()).getLinkedAccount(); DbxFile mFile; DbxFileSystem fs = DbxFileSystem.forAccount(acct); try {

File migration via dropbox APi

≡放荡痞女 提交于 2019-12-08 07:02:35
问题 I'm using the dropbox API to migrate a large amount of files from one dropbox account to another. This seems to be taking between 2 and 7 seconds per file. Are there any ways to speed up the time it takes to move files using the dropbox API? source = dropbox.Dropbox('connectionstring') target = dropbox.Dropbox('connectionstring') list_folder = source.files_list_folder('') while list_folder: files = re.findall(r'name=[\'"]?([^\'" >]+)', str(list_folder)) for f in files: source.files_download

Upload to dropbox using Restsharp PCL

你离开我真会死。 提交于 2019-12-08 06:28:18
问题 I am trying to upload a file to Dropbox using PCL using RestSharp.Portable. My code is public async Task<object> UploadFile(Stream fileStream, string fileName) { var client = new RestClient("https://api-content.dropbox.com"); client.ClearEncodings(); client.AddEncoding("gzip", new GzipEncoding()); var request = new RestRequest("1/files/dropbox/Apps/FileBolt", HttpMethod.Post); request.AddHeader("Authorization", string.Format("Bearer {0}", Token)); request.AddParameter("file", fileName); byte[

Dropbox SDK 1.3.13 not support arm64

自古美人都是妖i 提交于 2019-12-08 06:13:47
问题 I developed app using xcode6.2 , i have drop box sdk1.3.13 it is not support the arm64 so i removed this from valid architecture now my app work fine and my STANDARD ARCHITECTURE is armv7,arm64 and my VALID ARCHITECTURE is armv7 , armv7s. I submitted my app into appstore in my validation warning is The archieve passed validation with several warnings iTunes store operation failed Missing 64-bit support. Starting February 1, 2015, new iOS apps uploaded to the App Store must include 64-bit

Dropbox API: how can I get the amount of remaining free space?

狂风中的少年 提交于 2019-12-08 05:55:28
问题 It seems to me that the Dropbox API lacks the ability to tell the remaining available free space for the linked Dropbox account. I can only get the total quota of the user, by using the .accountInfo() call. The only way I see is to iterate over all the files the user stores in Dropbox, and sum up their sizes, then subtract this amount from the total quota. This solutions seems quite terrible and slow, is there a better way to this? As a sidenote, I attempt to do this on Android, but I don't

How to access Dropbox events page using API

∥☆過路亽.° 提交于 2019-12-08 05:44:59
问题 Is there a way to access Dropbox's Events page using some API? We basically need activity of shared folder, but with little more details than by using RSS feed. 回答1: There is currently no way to access the Dropbox Events page via the Dropbox API. UPDATE: There is now an endpoint in the API for shared folder metadata https://www.dropbox.com/developers/core/docs#shared-folders 来源: https://stackoverflow.com/questions/16694506/how-to-access-dropbox-events-page-using-api

Deauthentication through Dropbox JSON API (webhooks)

扶醉桌前 提交于 2019-12-07 22:41:00
问题 We're using the Dropbox API in our App but haven't found a way to succcessfully deauthenticate. Currently we call the disable_access_token on logout, which works (i.e. subsequent calls using the token fail). Unfortunately, the next time the OAuth2 login process is initiated the session gets completely revived without asking the user for their credentials, meaning that until the app is uninstalled, only one Dropbox user can be authenticated. This seems to be a regression issue as everything