dropbox-api

Increase the limit of file upload size in Heroku while uploading to Dropbox

∥☆過路亽.° 提交于 2019-12-24 04:04:12
问题 I have encountered an issue while uploading files to dropbox through my application that is hosted on Heroku. I wanted to upload approx 100MB files and they aren't being hosted on Heroku itself. I couldn't find anything on docs that'd address this issue entirely. I tried an hack, I created a file named custom_php.ini and in ProcFile I added this line: web: vendor/bin/heroku-php-apache2 -i custom_php.ini . And in my custom_php.ini file I set upload_max_filesize to 100M . But this didn't work

Uploading file to Dropbox in android, putFile method throws Exception

时光毁灭记忆、已成空白 提交于 2019-12-24 03:34:09
问题 I'm trying to upload a file to Dropbox using the Dropbox API tutorial. I logged in when creating the Activity and I add some code to the onResume() method as said in the tutorial. Then, after clicking a button, startService() method is called. When it reaches the line "com.dropbox.client2.DropboxAPI.Entry response = mDBApi.putFile("/working-draft.txt", inputStream, file.length(), null, null);", the app throws an Exception (not a DropboxException, nor DropboxUnlinkedException, .... It just

Dropbox Core and Sync APIs together in iOS app

妖精的绣舞 提交于 2019-12-23 21:17:39
问题 I wanna use Dropbox's Core and Sync APIs together in an iOS app, I have started working on it and implemented core API successfully using framework DropboxSDK.framework , Now I started working on Sync API and added Dropbox.framework and I am getting: …../Dropbox.framework/Headers/DBAccountInfo.h:5:1: Duplicate interface definition for class 'DBAccountInfo' …../Dropbox.framework/Headers/DBError.h:32:3: Typedef redefinition with different types ('enum DBErrorCode' vs 'enum DBErrorCode') I know

Starting an activity from a service and wait for the result

混江龙づ霸主 提交于 2019-12-23 17:24:58
问题 I am facing the following problem: I need to start an activity from a service. It is very important that the service waits for a result from the activity before continuing to the next method. Currently I have something like this: startActivity(new Intent(this, GoogleAuthHelperActivity.class), FLAG_ACTIVITY_NEW_TASK); //code should wait for the result of the GoogleAuthHelperActivity before continuing GoogleAuthHelperActivity.apiClient.isConnected();//gives nullpointer I have the same problem

Dropbox api “USER TOKEN”, “USER SECRET”

微笑、不失礼 提交于 2019-12-23 13:58:51
问题 I am trying manipulate files using Dropbox Api by using DropNet Client (C# version of Dropbox CLient API). Here is my code: var client = new DropNetClient(APP_KEY,APP_SECRET); client.Delete("/Public/test.txt"); But it seems I need "USER TOKEN" and "USER SECRET" as well. Where should I get these two? Updated: I just need to manipulate files in my own folders and my shared folders. I already have APP_KEY and APP_SECRET from myApp page, where can I get "USER TOKEN" and "USER SECRET" THanks 回答1:

How to avoid “conflicted copy” when uploading to dropbox from iOS client

回眸只為那壹抹淺笑 提交于 2019-12-23 13:34:15
问题 I created a simple iOS test app that creates a file locally and uploads this to the associated dropbox share. My objective is to keep updating this file (overwriting it) based on certain events (button press). The contents of the file is simply the current date & time at the time of the event. When I first run the app, the upload works every time - if the file existed before it is overwritten (updated) using this: NSString * destination = @"/"; NSString * rev = [_fileDetailsDict objectForKey:

Dropbox API - Get permanent link for my media?

倖福魔咒の 提交于 2019-12-23 12:42:07
问题 I use "createTemporaryDirectLink" method to get links for streaming my video. it works like a charm... but every time I need to update these links as they expire. I wonder whether there is a possibility to get and then keep permanent links for streaming media? Thanks 回答1: You might want to instead get a share link via createShareableLink and then convert it to a direct link by stripping the other query parameters and adding raw=1 . (See https://www.dropbox.com/help/201 for details on how to

Using Dropbox Datastore API as a primary storage option for Android application

廉价感情. 提交于 2019-12-23 10:39:38
问题 I'm looking for a way to sync SQLite data of my Android app across devices. Dropbox Datastore API seems to fit just fine (at least conceptually). I've studied available examples, but cannot yet understand how does this API fit into Android data access worldview with it's ContentProvider=>ContentResolver=>Adaptor=>ListView machinery. My guess is that certain plumbing is required for smoother integration of Datastore API, maybe even as a drop-in replacement of SQLite. And the best place where

Dropbox.js authentication in Cordova/PhoneGap

不羁岁月 提交于 2019-12-23 10:07:22
问题 I'm writing an app in Cordova/PhoneGap which tries to fetch a file from Dropbox using Dropbox.js. Cordova version is 3.0.1 and Dropbox.js version is 0.10.0. My Javascript works just fine on a desktop browser with this: var client = new Dropbox.Client({ key: "<my key>", secret: "<my secret>"} ); client.authenticate(function(error, client) { ... But in the Cordova-packaged app I get an error: "It seems the app you were using submitted a bad request". I suspect the problem has to do with the

Dropbox.js authentication in Cordova/PhoneGap

爱⌒轻易说出口 提交于 2019-12-23 10:05:06
问题 I'm writing an app in Cordova/PhoneGap which tries to fetch a file from Dropbox using Dropbox.js. Cordova version is 3.0.1 and Dropbox.js version is 0.10.0. My Javascript works just fine on a desktop browser with this: var client = new Dropbox.Client({ key: "<my key>", secret: "<my secret>"} ); client.authenticate(function(error, client) { ... But in the Cordova-packaged app I get an error: "It seems the app you were using submitted a bad request". I suspect the problem has to do with the