dropbox

User Id in DropBox SDK

為{幸葍}努か 提交于 2019-12-06 05:54:48
问题 How can i find the user id of current User who has logined through XCode In DropBox SDK. I need it done programmatically. 回答1: In your code after you've linked, you can add: [self.restClient loadAccountInfo]; and the delegate: - (void)restClient:(DBRestClient*)client loadedAccountInfo:(DBAccountInfo*)info { NSLog(@"UserID: %@ %@", [info displayName], [info userId]); } 回答2: After you linked to dropbox, you can try the following code: NSString* dropbox_id=[[DBSession sharedSession].userIds

Download file from Dropbox with JavaScript

蓝咒 提交于 2019-12-06 04:17:26
问题 I have I have a web site were try to provide a service to a client to be abel to download from Dropbox a file. For simplicity of development I use Dropbox chooser. For this I enable domains I expect to download from and include <script> tag suggested by Dropbox itself (with corresponding data-app-key ) into my HTML page. Everything works sweet. Problem Now I need to download a file selected by the user. Dropbox chooser doesn't seem to provide any functionality for this, what it does, is just

Dropbox direct upload files from browser

放肆的年华 提交于 2019-12-06 02:54:45
问题 I am trying to upload files directly to dropbox [from a browser / web application], The "uploadFile" function on the code API needs the file to be uploaded available on the server, this puts me in trouble, because I do not want any files to be uploaded to my server and from there to dropbox. $f = fopen("test.jpg", "rb"); // requires file on server $result = $dbxClient->uploadFile("test.jpg", dbx\WriteMode::add(), $f); fclose($f); Tried out this https://github.com/dropbox/dropbox-js

Getting started with DropboxAPI, class not found

百般思念 提交于 2019-12-06 00:27:32
I'm trying to use the Dropbox API for the first time, but i'm getting this error when launching my app. Caused by: java.lang.NoClassDefFoundError: com.dropbox.client2.session.Session$AccessType I saw on Dropbox forums a guy with the same problem, and the solution was to rename the class path to libs/ instead of lib/. I did it and didn't work. I get the error here: final static private AccessType ACCESS_TYPE = AccessType.APP_FOLDER; any ideas? This problem appeared when I imported dropbox jars in the next way: eclipse project menu -> Build Path -> Configure Build Path -> Libraries -> Add

Git ref master now empty, how to recover?

自闭症网瘾萝莉.ら 提交于 2019-12-05 23:01:21
I'm not entirely sure what happened, but for some reason my git repository's master ref file is now empty. We're hosting the repository on Dropbox, so maybe it has to do with that..but now I can't pull from it. It says this: Your configuration specifies to merge with the ref 'master' from the remote, but no such ref was fetched. Dropbox keeps versions of files, so if I go back to the previous version of 'master' it says: fatal: object 2d154f82e59a4156a5d3ea04a0617c243ae6dc3a is corrupted fatal: The remote end hung up unexpectedly How do I recover from this? Sigh. I like Dropbox, but I would

Upload files to a specific folder in dropbox

假如想象 提交于 2019-12-05 22:58:50
I was using this example to upload files to dropbox: http://cgeers.com/2012/03/11/dropbox-rest-api-part-5-file-upload/ Which is: public FileSystemInfo UploadFile(string root, string path, string file) { //... } The method has 3 parameters: root: The root relative to which the path is specified. Valid values are sandbox and dropbox. path: The path to the file you want to upload. file: Absolute path to the local file you want to upload Call this method as follows: var file = api.UploadFile("dropbox", "photo.jpg", @"C:\Pictures\photo.jpg"); Dropbox API says exactly the same as the example: https:

Converting/uploading large amounts of data from iPad to Dropbox

浪子不回头ぞ 提交于 2019-12-05 22:17:07
I'm finishing up my app by running it through Instruments as well as stressing it with large amounts of data. The Instruments tests go fine, but the stress test is where I'm having issues. Without getting into too much detail, I'm giving my app increasing amounts of Core Data events with which it needs to extrapolate data, make graphs, and present locations on a MKMapView instance. I started small and increased to 56000 events, which it handled fine wihtout any leaks or memory warnings (and I was quite proud of it for handling it all). My app implements the Dropbox API to allow for uploading

Dropbox API - Using Dropbox as a server

末鹿安然 提交于 2019-12-05 21:50:12
I was wanting to use a file sharing server to keep certain files up-to-date and constant across multiple instances of my application across multiple computers - like (for example) writing a multiplayer game, which stores all the player's positions in a text file, and uses something like Dropbox to keep the text file constant across all the applications, and each application instance can change the file with that application's player's position, and then the rest of the applications can update accordingly. This is only an example, and is not what I intend to do using this technology. What I

Dropbox API v2 - trying to upload file with files_upload() - throws TypeError

最后都变了- 提交于 2019-12-05 20:26:15
问题 I have been trying to upload a simple file to dropbox using the files_upload() function in python3 Even trying out the code in the tutorial provided on Dropbox's site I get an error and I don't understand why. What am I missing here? Here is my code: import dropbox dbx = dropbox.Dropbox("my_access_token") data = "asd" dbx.files_upload(data, '/file.txt') And here is the error message I get when I try to run it: Traceback (most recent call last): File "dbox.py", line 7, in <module> dbx.files

rDrop dropbox api non-expiring tokens/seamless token issues

你离开我真会死。 提交于 2019-12-05 18:54:58
I am using the rDrop package that is available from https://github.com/karthikram/rDrop , and after a bit of tweaking (as all the functions don't quite work as you would always expect them to) I have got it to work finally in the way I would like, but it still requires authorisation verification to allow the use of the app, once you get the token each time, as I think that tokens expire over time...(if this is not the case and I can hard code in my token please tell me as that would be a good solution too...) Basically I wanted a near seamless way of downloading csv files from my dropbox