dropbox-api

Integrate Dropbox in android app, but without login popup

天涯浪子 提交于 2019-11-30 02:13:05
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. How to set access user access token pair manually. AppKeyPair appKeys = new AppKeyPair(APP_KEY, APP_SECRET); AndroidAuthSession session = new AndroidAuthSession(appKeys, ACCESS_TYPE); if (mDBApi == null) { mDBApi = new DropboxAPI<AndroidAuthSession>(session); //

How to create hierarchical structure with list of path?

╄→尐↘猪︶ㄣ 提交于 2019-11-29 22:16:07
问题 I'm playing with the Dropbox's Delta API, when I call delta method I get a list of path's that changed since last call. /photos /public /photos/sample album /photos/sample album/boston city flow.jpg /photos/sample album/pensive parakeet.jpg /photos/sample album/costa rican frog.jpg /getting started.pdf /photos/how to use the photos folder.txt /public/how to use the public folder.txt /ies eai.pptx /documents /documents/windows phone toolkit in depth 2nd edition.pdf /prashant /prashant/iphone

Dropbox v2 API - large file uploads

喜欢而已 提交于 2019-11-29 18:11:16
This question follows on from my previous question on the same subject. Simple file uploads are, well, simple . $headers = array("Authorization: Bearer dropbox_token", 'Content-Type: application/octet-stream', 'Dropbox-API-Arg: {"path":"/path/file.ext", "mode":"add"}'); $data = "I love Stackoverflow"; $ch = curl_init('https://content.dropboxapi.com/2/files/upload/'); curl_setopt($ch,CURLOPT_HTTPHEADER,$headers); curl_setopt($ch,CURLOPT_POST,true); curl_setopt($ch,CURLOPT_POSTFIELDS,$data); curl_setopt($ch,CURLOPT_RETURNTRANSFER,true); $response = curl_exec($ch); curl_close($ch); echo $response

iOS Dropbox SDK - Cannot upload or get metadata

喜你入骨 提交于 2019-11-29 17:19:53
This app used to work properly, but now I cannot upload a file or get metadata. Whenever I try to upload, I'll get File upload failed with error: Error Domain=dropbox.com Code=401 "The operation couldn’t be completed. (dropbox.com error 401.)" But when trying to get metadata I'll get Error loading metadata: Error Domain=dropbox.com Code=403 "The operation couldn’t be completed. (dropbox.com error 403.)" I've been trying to re-authenticate, but there seems to be no difference after I execute unlink command. I've tried placing this command in different places. - (BOOL)application:(UIApplication

Programmatically Download Content from Shared Dropbox Folder Links

匆匆过客 提交于 2019-11-29 16:28:16
问题 I'm building an application to automatically trigger a download of a Dropbox file shared with a user (shared file/folder link). This was straight forward to implement for Dropbox links to files, as is outlined here. Unfortunately this doesn't work for shared folders. Anyone have suggestions on how I could Download the all of it's contents (maybe get a list of the files links inside it to download?) or Download a zip of the folder Currently I can go to the url and do some screen-scraping to

Dropbox Access Token Expiry

我的未来我决定 提交于 2019-11-29 07:41:57
What is the lifetime for an Access Token acquired through the Dropbox oAuth2 APIs? The answer after the https://api.dropbox.com/1/oauth2/token was something like { "access_token": "fHUlx32x494RmgTlxWiF6pLzd5q1Lg4Itt7I6itVYDIDT", "token_type": "bearer", "uid": "17233223324" } But there's no mention of when the AT expires. If ever. It effectively never expires. But users can invalidate tokens by unlinking an app. (In the case of an App folder app, they can delete the app folder from their Dropbox. For all apps, they can unlink the app on dropbox.com.) 来源: https://stackoverflow.com/questions

Allow Dropbox API to access my account on user's device

生来就可爱ヽ(ⅴ<●) 提交于 2019-11-29 04:08:10
As a mobile developer, I'm looking for a solution that allows users of my application to download multiple .zip files that will add a "modular" feel to my application. I've used the Dropbox API in another app to allow users to backup items to their account, but now I need the user to access my account. Is there a way to authenticate the Dropbox session to my account automatically, or just connect to my Public folder without the user even noticing? Followup Question What are the security implications of hard-coding my access keys and app key/secret into an application? I know it is fairly

Android Dropbox API file download

风流意气都作罢 提交于 2019-11-29 02:46:53
I am currently working on an android app that is to support the android dropbox api. I have got it working so that it sends a file from the android sd card to a dropbox folder. I then later on need to be able to download this file and save it to the phone sd card again. How can I download the file from Dropbox and save it to the device, there is very little to no documentation about the android api. Thanks for any help you can provide. private boolean downloadDropboxFile(String dbPath, File localFile) throws IOException{ BufferedInputStream br = null; BufferedOutputStream bw = null; try { if (

Using Dropbox Java API for uploading files to dropbox

ぐ巨炮叔叔 提交于 2019-11-29 00:45:11
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 HashMap(); configuration.put("consumer_key", "XXXXXXXXXXXXXXXX"); configuration.put("consumer_secret",

Dropbox: Produce a direct download link [PHP preferred]

我们两清 提交于 2019-11-28 20:57:12
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... Paul 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 the REST API to return the full url by setting the short_url parameter to false. Once you have the full