dropbox-api

Create a folder in dropbox from Iphone App

試著忘記壹切 提交于 2019-11-30 21:05:28
问题 I am a beginner in iOS development and have just started using the DropBox SDK for iOS. I am using XCode 3.2.5 having the simulator 4.2 . I wanted to create a folder(or directory) on my dropbox account using the DropBox SDK programmatically and upload files directly to that folder in my DropBox account. I have the following code to upload a file [[self restClient] uploadFile:@"info.txt" toPath:@"/" withParentRev:nil fromPath:sourceString]; I have to store this file inside a folder called

Using saved Dropbox authentication details on Android

会有一股神秘感。 提交于 2019-11-30 17:31:16
问题 In the Getting started article on Dropbox website they have a tutorial how to use Core API with Android to get started. When the application launches for the first time, the user is asked to authenticate the software to use the users Dropbox account. After the authentication is successfully finished, you'll receive a pair of authentication strings, the key and a secret. After the user has authenticated the application to use his or her Dropbox account I save the key and the secred using

How should I deal with APP_KEY and APP_SECRET (Dropbox API)

送分小仙女□ 提交于 2019-11-30 16:02:54
I've written a simple piece of code using Dropbox API, which implies usage of APP_KEY and APP_SECRET of my app. Let's suppose someone wants to use my app too. I create a github repo, push the code and so on, but, of course, I don't put APP_KEY and APP_SECRET values . Do users have to register their own instances of this application? Is there another way to deal? Maybe sharing APP_KEY and APP_SECRET is enough secure to let it be that way? In other words, Dropbox prohibits usage of username-password pair for authenticating (while their own official app does exactly that), but I want (for example

How should I deal with APP_KEY and APP_SECRET (Dropbox API)

坚强是说给别人听的谎言 提交于 2019-11-30 15:59:15
问题 I've written a simple piece of code using Dropbox API, which implies usage of APP_KEY and APP_SECRET of my app. Let's suppose someone wants to use my app too. I create a github repo, push the code and so on, but, of course, I don't put APP_KEY and APP_SECRET values . Do users have to register their own instances of this application? Is there another way to deal? Maybe sharing APP_KEY and APP_SECRET is enough secure to let it be that way? In other words, Dropbox prohibits usage of username

dropbox API v2 upload large files using python

戏子无情 提交于 2019-11-30 14:17:47
问题 I'm trying to upload big file (~900MB) via Dropbox API v2 but I'm getting this error: requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) It works ok with smaller files. I found in documentation that I need to open upload session using files_upload_session_start method but I have an error on this command and I can't go further with ._append methods. How can I solve this problem? There're no info in docs. I'm using Python 3.5.1

Integrate Dropbox in android app, but without login popup

回眸只為那壹抹淺笑 提交于 2019-11-30 12:29:26
问题 I want to use the dropbox in my application.I developed a sample application for upload and download files and it ask for authentication. But I don't want to open login popup. Is it possible access the dropbox by other users using default account(single account) login details? So any user can use dropbox directly without login popup. 回答1: How to set access user access token pair manually. AppKeyPair appKeys = new AppKeyPair(APP_KEY, APP_SECRET); AndroidAuthSession session = new

dropbox API v2 upload large files using python

旧城冷巷雨未停 提交于 2019-11-30 10:11:18
I'm trying to upload big file (~900MB) via Dropbox API v2 but I'm getting this error: requests.exceptions.ConnectionError: ('Connection aborted.', ConnectionResetError(104, 'Connection reset by peer')) It works ok with smaller files. I found in documentation that I need to open upload session using files_upload_session_start method but I have an error on this command and I can't go further with ._append methods. How can I solve this problem? There're no info in docs. I'm using Python 3.5.1 and latest dropbox module installed using pip. Here's code which I'm running to: c = Dropbox(access_token

A simple sync with the iPhone DropBox API

冷暖自知 提交于 2019-11-30 07:35:59
I am getting slightly frustrated with the DropBox API. It is supposed to be all simple and straight forward, but I have yet to come a across a simple and plain explanation of how to do a simple sync. I followed all the instruction you can find in the readme which comes withe DropBox API. To test the whole thing, I have created two buttons to download and upload a file from or to my DropBox. The files are found in my app documents folder. This works splendidly: -(void) DBupload:(id)sender { NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES);

Using Dropbox Java API for uploading files to dropbox

风流意气都作罢 提交于 2019-11-30 07:05:07
问题 I want to upload files using the java API for DropBox. The following code gets me the oauth_token and oauth_secret. but when ever I try to upload a file I get a exception. Java Class package com.dropbox.client; import com.dropbox.client.DropboxAPI.Config; import java.io.File; import java.net.URL; import java.util.HashMap; import java.util.Map; /** * * @author Charan */ public class DBmain { public DBmain() { System.setProperty("java.net.useSystemProxies", "true"); Map configuration= new

Dropbox: Produce a direct download link [PHP preferred]

爷,独闯天下 提交于 2019-11-30 06:39:55
问题 I'm using the Dropbox REST API and I can successfully retrieve a share url for a file. https://www.dropbox.com/developers/reference/api#shares However, the share link takes the user to a preview page on dropbox.com, whereas I'm looking for a direct link that a user could directly download a file. eg. Right click, Save as... 回答1: It turns out that the default share url that is returned is a short url and the short url will always point to the Dropbox preview page. Therefore, you need to get