dropbox-api

Transfer files from dropbox/drive to Google cloud storage

允我心安 提交于 2019-12-03 06:19:53
We are planning to implement a feature to let customers browse their images in their own google drive or dropbox accounts (within our app), and select ones they wanna use in our app. Then, we will save these images into our Google cloud storage (GCS) place. A simple approach is to use OAuth to download the customers' images from dropbox/drive to our local disk, then upload them to our GCS. I am wondering if it is possible to make a direct transfer between dropbox/drive and GCS? GCS does provide transfer service for S3. You can also create a list of URL list, but each URL needs to be publicly

iPhone DropBox API: How to load a file?

断了今生、忘了曾经 提交于 2019-12-03 05:19:52
问题 A very basic question concerning dropBox integration into an iPhone app. I followed the setup of the DropBoxSDK and everything works fine. I can log on to my account and get it linked. So I set up everything correctly. Now I would like to use it to simply load a file from the dropBox and save it again. Consider that you only want to sync ONE FILE (for the sake of simplicity), called 'example.txt' which is located in the 'Example' folder in my DropBox. The same 'example.txt' is saved locally

Retrieve contents of a public Dropbox folder?

Deadly 提交于 2019-12-03 03:10:56
Is there a way to retrieve a list of the contents of a public Dropbox folder (preferably in PHP)? This is what a URL to a public file in Dropbox looks like: http://dl.dropbox.com/u/1234567/publikPholder/textytext.txt One would think that jumping up one level to the directory in the URL... http://dl.dropbox.com/u/1234567/publikPholder/ ...would show all the public files. Nope. Nothing but a 404. Looks like this library is pretty complete (although I haven't used it myself), and is probably as simple as (post-auth): $info = $dropbox->getMetaData('Public', true); print_r($info['contents']);

Transfer files to dropbox from node js without browser based oauth authentication

元气小坏坏 提交于 2019-12-02 21:49:55
I am running a nodejs + express based api server from heroku and using the dropbox-js library. Here's what I'd like to do: A user hits a specific api endpoint and kicks off the process. Generate some text files via a node process and save them on the server Transfer these files to a dropbox that I own using my own credentials (user and dropbox app). There will never be a case when a random user needs to do this.. it's a team account and this is an internal tool. The part that is tripping me up is that dropbox wants to open a browser window and get permission from me to connect to the app. The

Download a file in Dropbox using asp.net mvc

一个人想着一个人 提交于 2019-12-02 18:52:15
问题 I'm using asp.net mvc 4 and dropbox-api to download a file from my dropbox account. I've successfully installed the api in my project and I'm following this tutorial to understand the functionalities but I'm getting an error if I run, Specified argument was out of the range of valid values. Parameter name: path Here are my codes, public async Task<ActionResult> DropDls() { var dbx = new DropboxClient("MY-TOKEN"); string folder = "My Folder"; string file = "My File.rar"; using (var response =

iPhone DropBox API: How to load a file?

狂风中的少年 提交于 2019-12-02 18:37:10
A very basic question concerning dropBox integration into an iPhone app. I followed the setup of the DropBoxSDK and everything works fine. I can log on to my account and get it linked. So I set up everything correctly. Now I would like to use it to simply load a file from the dropBox and save it again. Consider that you only want to sync ONE FILE (for the sake of simplicity), called 'example.txt' which is located in the 'Example' folder in my DropBox. The same 'example.txt' is saved locally on the iPhone in the Documents directory of my app. The dropBox readme file suggest vaguely the

Save image to dropbox with data from canvas

笑着哭i 提交于 2019-12-02 15:43:03
问题 I'm trying to write canvas data as an image (png) to my dropbox. I manage to get the data from canvas and to save a file to dropbox, but the file is not an image file it seams. According to the documentation the image data should be converted to a arrayBuffer. That I'm doing using a function found here on Stackoverflow but something doesn't seem to work. Does anyone know what I'm doing wrong? function _str2ab(str) { var buf = new ArrayBuffer(str.length*2); // 2 bytes for each char var bufView

Dropbox could not dismiss modal view controller

天大地大妈咪最大 提交于 2019-12-02 14:54:58
问题 I have integrated dropbox in my application,After entering the username and password,when i try to dismiss the dropbox view controller it is not dismissing. i am using xcode4.2 with ios sdk5.Please help me to fix this issue. 回答1: in ios5 you have to use presentingViewController instead of parentViewController. e.g.: if (self.parentViewController) { [self.parentViewController dismissModalViewControllerAnimated:YES]; } else if ([self respondsToSelector:@selector(presentingViewController)] &&

Dropbox Datastore to API 2 Migration Error

二次信任 提交于 2019-12-02 11:19:37
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 hit Allow and then return to my app and get this error: Error Unknown: Unable to verify link request

Download a file in Dropbox using asp.net mvc

♀尐吖头ヾ 提交于 2019-12-02 10:01:44
I'm using asp.net mvc 4 and dropbox-api to download a file from my dropbox account. I've successfully installed the api in my project and I'm following this tutorial to understand the functionalities but I'm getting an error if I run, Specified argument was out of the range of valid values. Parameter name: path Here are my codes, public async Task<ActionResult> DropDls() { var dbx = new DropboxClient("MY-TOKEN"); string folder = "My Folder"; string file = "My File.rar"; using (var response = await dbx.Files.DownloadAsync(folder + "/" + file)) { await response.GetContentAsStringAsync(); }