dropbox-api

When using Dropbox CoreAPI, how to skip user permission?

て烟熏妆下的殇ゞ 提交于 2019-12-13 02:19:03
问题 I'm making an application that plays streaming video through Dropbox. My videos are uploaded to a Dropbox public folder. I'm using coreApi, media method, and I have had success getting my video's path and playing it. But whenever I run the application, I see two unexpected screens: First, if a user doesn't login at dropbox, my application demands a dropbox account login. Should whoever uses my application, need to have their own account? If so, someone who doesn't have an account, can't use

Get all files and folders list with Dropbox Core API for Android

徘徊边缘 提交于 2019-12-12 17:15:04
问题 I want my app user to be able to view Dropbox files and folders, so that he/she can choose one of them and use in my app. For this I used Dropbox Core API like this: private DropboxAPI<AndroidAuthSession> mDBApi; AppKeyPair appKeys = new AppKeyPair(Constants.DROPBOX_APP_KEY, Constants.DROPBOX_APP_SECRET); AndroidAuthSession session = new AndroidAuthSession(appKeys); mDBApi = new DropboxAPI<AndroidAuthSession>(session); On my button click, I started authorization: mDBApi.getSession()

Android - Downloading File by updating Progress Bar

南楼画角 提交于 2019-12-12 10:12:18
问题 I have multiple files in dropbox account. I am successfully downloading files. But I want to show the progress bar with the percentage so when all files gets downloaded.The progress bar finishes.I am using AsyncTask for downloading files.here is my code. public void onPreExecute(){ mDialog = new ProgressDialog(mContext); mDialog.setProgressStyle(ProgressDialog.STYLE_HORIZONTAL); mDialog.setMax(100); mDialog.show(); } public void downloadFiles(String filename){ Log.i("Item Name",filename);

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

拟墨画扇 提交于 2019-12-12 09:44:13
问题 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. 回答1: 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

Integrate Dropbox in ios app, but without login pop

≡放荡痞女 提交于 2019-12-12 09:26:39
问题 I want to integrate Dropbox in my app. I have made one sample example using Dropbox document and sample code. But the issue is, I don't want to open login popup. So is there any way so that I can use dropbox without login or some where I can set default login ID Password and automatically do login. so that I can use dropbox directly. Thanks, Hardik Shah 回答1: Well you could put the files in Dropbox and then share them and use the shared URLs as resources to call. We actually do this for some

You should have a com.dropbox.client2.android.AuthActivity with the scheme:XXXXXXXX

早过忘川 提交于 2019-12-12 07:22:32
问题 I am trying to upload a text file to my Dropbox, but it shows an error in manifest. This is my Manifest file and the logcat error , what am I doing wrong can anyone help me please... <?xml version="1.0" encoding="utf-8"?> <manifest xmlns:android="http://schemas.android.com/apk/res/android" package="com.example.ondropbox" android:versionCode="1" android:versionName="1.0" > <uses-sdk android:minSdkVersion="8" android:targetSdkVersion="17" /> <uses-permission android:name="android.permission

Send files directly to my Dropbox space through my android app, without asking the user to log in

女生的网名这么多〃 提交于 2019-12-12 06:11:43
问题 I have developed a android application through which user can send their files to my server. here i want to use drop-box to receive files directly to it. when the user is sending files, it should directly reach my drop-box space. i have developed a test app, by referencing the drop-box API, but it asks me every-time to log in to drop-box. i'm planing to put my app in Google play store, there i cannot go to every user those who download my app, and log in to my drop-box account. In Short: How

Dropbox Chooser returns corrupted file

与世无争的帅哥 提交于 2019-12-12 06:00:10
问题 posting here because I've not received a response over at the dropbox forums. dropbox forum post A few months ago I implemented the dropbox chooser and got everything working fine. Then about a week ago I ran into an issue where .pdf files would open, but contain blank pages and .docx files won't open at all (.rtf and .txt files open just fine) Anyway I started digging and it turns out that the xhr.responseText that comes back is short a number of bytes (approximately 4% short in pdf files) I

AS3: Sending empty Content-Type header in urlrequestHeader

断了今生、忘了曾经 提交于 2019-12-12 05:52:45
问题 I want to download file from dropbox api. Below is the snippet of my code. var oauthHeader:URLRequestHeader = OAuthHelper.buildRequestHeaderWithToken(config.accessTokenKey); var urlRequest:URLRequest = new URLRequest(); var jsonPath:String = JSON.stringify(params); var requestHeader:URLRequestHeader = new URLRequestHeader("Dropbox-API-Arg",jsonPath); urlRequest.requestHeaders = [oauthHeader,requestHeader]; urlRequest.contentType = ""; urlRequest.method = httpMethod; urlRequest.url = url; I

How to use the dropbox-js pullChanges method to get a file list of existing files

余生颓废 提交于 2019-12-12 05:41:50
问题 I am using dropbox-js to access a user's dropbox files. Please note that I am very new to this... What I need to do, is to access existing files using dropbox-js. As I understand it, the pullChanges method should be used for this. This is how I currently have it: client.pullChanges(null, function(error, results) { if (error) { return showError(error); } alert("Dropbox contains: " + results.shouldPullAgain); //just to test that something happens }); I'm not sure if this is the correct way to