dropbox-api

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

Android Dropbox API not saving login

陌路散爱 提交于 2019-12-06 02:57:57
I'm sort of a beginner at Android programming. I've been trying to get Dropbox to integrate into [the beginnings of] an app I'm writing. I've followed the instructions and looked at the basic example DBRoulette that comes with the Dropbox API. The problem I keep running into is that I log into Dropbox (through web browser) and then confirm that the app can use its Dropbox App folder... For that session it works fine, but then when I close the app fully and open it again, I get asked to log in again! I definitely don't want to have to retype all my dropbox login stuff again even if this 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

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:

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

How to fix urllib3 RuntimeError: Requests dependency 'urllib3' must be version >= 1.21.1, < 1.22?

最后都变了- 提交于 2019-12-05 19:08:36
I am a new developer and learning to code in Python 3.4.2. I am running Debian linux on a Raspberry Pi3. After the fresh install I did both sudo apt-get update and sudo apt-get upgrade to get everything up to date. I am trying to test a section of code which uploads a file to Dropbox: import dropbox import urllib3 authkey = (my dropbox dev auth key) with open('test.csv','rb') as f: dbx = dropbox.Dropbox(authkey) dbx.files_upload(f.read(), '/test.csv') Now, I have no idea if the actual Dropbox code is correct, because I am getting the following error when I run the script in the Python shell:

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

How to upload to Dropbox Public folder and get public URL?

左心房为你撑大大i 提交于 2019-12-05 12:03:43
I have a situation, where I need to upload a file to my Dropbox Public Folder, and also once uploaded I need to store the uploaded file's public url ? I am using python, and any help on this would be great. Thanks. eladyanai Use this to set up a Python SDK in your program https://www.dropbox.com/developers/start/setup#python This will give you all of the file information: folder_metadata = client.metadata('/') I beleive you are talking about these short links, just so you know, every small link from the public folder is generated only by special request and has an expiration date. If you want

Using dropboxjs to authenticate the client with oauth 2. What about the server?

こ雲淡風輕ζ 提交于 2019-12-05 07:03:15
I'm new to Oauth and server-side stuff, so please be patient with me. I have a web application that authenticates users with dropbox-js . Everything is pretty straightforward. The application uses dropbox-js' client.authenticate function, and if the user is authenticated, the application gets automatically redirected to the initial page, where it executes the authenticate callback. From that moment on, I know I'm happily authenticated with Dropbox, and I can do stuff with the app's Dropbox directory. I got a public node.js server that currently does nothing. What I would like to do is: As soon