dropbox

iPhone DropBox API: How to load a file?

狂风中的少年 提交于 2019-12-02 18:37:10
A very basic question concerning dropBox integration into an iPhone app. I followed the setup of the DropBoxSDK and everything works fine. I can log on to my account and get it linked. So I set up everything correctly. Now I would like to use it to simply load a file from the dropBox and save it again. Consider that you only want to sync ONE FILE (for the sake of simplicity), called 'example.txt' which is located in the 'Example' folder in my DropBox. The same 'example.txt' is saved locally on the iPhone in the Documents directory of my app. The dropBox readme file suggest vaguely the

Dropbox Core API is not working. I don't want to hardcode app key and secret?

喜夏-厌秋 提交于 2019-12-02 17:40:21
问题 I am newbie. There are two activities in my app: login and main activity. I want to enter my app key and app secret in login activity, but my app isn't working. It's getting a crash. I want to start authentication process when I click a button. public class login_activity extends AppCompatActivity { public String APP_kEY ; public String APP_SECRET; public String accessToken; EditText app_key_view; EditText App_secret_view; Button dropbox; public DropboxAPI<AndroidAuthSession> mDBApi;

Save image to dropbox with data from canvas

笑着哭i 提交于 2019-12-02 15:43:03
问题 I'm trying to write canvas data as an image (png) to my dropbox. I manage to get the data from canvas and to save a file to dropbox, but the file is not an image file it seams. According to the documentation the image data should be converted to a arrayBuffer. That I'm doing using a function found here on Stackoverflow but something doesn't seem to work. Does anyone know what I'm doing wrong? function _str2ab(str) { var buf = new ArrayBuffer(str.length*2); // 2 bytes for each char var bufView

Using Subversion with DropBox

孤者浪人 提交于 2019-12-02 15:23:39
Is it a bad idea to use DropBox as a backup system for Subversion repositories? Has anyone tried using Subversion with an an online file sharing utility like DropBox? What's your experiences? My concern is whether this will work - mainly because Subversion maintains locks and it's very specific about it. I'm not sure if DropBox and Subversion can both work together? p.s. I'm thinking of using this for my Xcode projects, and no, i don't want to use github because it's not free - you can't keep your repositories Private with the free account (and other reasons). References: DropBox (file sync,

Obtain OAuth2 Access Token for Dropbox Core API with Codenameone's Oauth2 Class

我与影子孤独终老i 提交于 2019-12-02 14:39:14
问题 I'm trying to use codenameone's Oauth2 Class to obtain an access token for Dropbox's Core API. The code I'm using is as follows: Oauth2 auth = new Oauth2("https://www.dropbox.com/1/oauth2/authorize", "<APP KEY>", "https://www.google.com", ""); Oauth2.setBackToParent(true); auth.showAuthentication(new ActionListener(){ public void actionPerformed(ActionEvent evt) { //get authentication token System.out.println(evt.getSource()); } }); When I run my app in the simulator, I'm presented with a web

File upload failed while uploading into dropbox in iOS in CoreApI

♀尐吖头ヾ 提交于 2019-12-02 13:13:28
I'm failing to upload files into dropbox in iOS in CoreApI I'm getting this message [WARNING] DropboxSDK: error making request to /1/files_put/sandboxsandbox/helloworld.txt - (400) Expected 'root' to be 'dropbox', 'sandbox', or 'auto', got u'sandboxsandbox' 2013-12-04 18:23:57.348 DropBoxCore[4914:907] File upload failed with error - Error Domain=dropbox.com Code=400 "The operation couldn’t be completed. (dropbox.com error 400.)" UserInfo=0x22b1d7f0 {sourcePath=/var/mobile/Applications/28B2865A-58BC-4DC8-8E61-7F40307DDC56/DropBoxCore.app/helloworld.txt, destinationPath=sandbox/helloworld.txt,

Obtain OAuth2 Access Token for Dropbox Core API with Codenameone's Oauth2 Class

人走茶凉 提交于 2019-12-02 10:19:54
I'm trying to use codenameone's Oauth2 Class to obtain an access token for Dropbox's Core API. The code I'm using is as follows: Oauth2 auth = new Oauth2("https://www.dropbox.com/1/oauth2/authorize", "<APP KEY>", "https://www.google.com", ""); Oauth2.setBackToParent(true); auth.showAuthentication(new ActionListener(){ public void actionPerformed(ActionEvent evt) { //get authentication token System.out.println(evt.getSource()); } }); When I run my app in the simulator, I'm presented with a web component that contains the log-in page for the OAuth2 authentication (like it's supposed to) but when

Download a file in Dropbox using asp.net mvc

♀尐吖头ヾ 提交于 2019-12-02 10:01:44
I'm using asp.net mvc 4 and dropbox-api to download a file from my dropbox account. I've successfully installed the api in my project and I'm following this tutorial to understand the functionalities but I'm getting an error if I run, Specified argument was out of the range of valid values. Parameter name: path Here are my codes, public async Task<ActionResult> DropDls() { var dbx = new DropboxClient("MY-TOKEN"); string folder = "My Folder"; string file = "My File.rar"; using (var response = await dbx.Files.DownloadAsync(folder + "/" + file)) { await response.GetContentAsStringAsync(); }

python dropbox api error

跟風遠走 提交于 2019-12-02 09:11:36
I'm following the tutorial here So far so good but the upload example give me errors. The code: from dropbox import client, rest, session f = open('txt2.txt') # upload a file response = client.put_file('/magnum-opus.txt', f) print "uploaded:", response The error: Traceback (most recent call last): File "dropbox_ul.py", line 4, in <module> response = client.put_file('/magnum-opus.txt', f) AttributeError: 'module' object has no attribute 'put_file' Where did I go wrong? EDIT: The new code I'm trying. This is actually from the dropbox developer website. As I stated earlier, I did go through the

How to display Dropbox files in a listview in android?

有些话、适合烂在心里 提交于 2019-12-02 08:09:27
问题 I've been browsing answers on here for a while and have employed most of the answers in my code but it still doesn't seem to work. I just want to display a listview of the content in a dropbox account and also give the user an option to download a file/folder. My MainActivity used to crash right after opening it, surrounding my onPostExecute content with a try/catch statement handling NullPointerException solved the crashing. But the app still fails to display the contents in Dropbox. At the