dropbox-api

Restore deleted files using Dropbox API

跟風遠走 提交于 2019-12-25 06:36:15
问题 I was searching for a way to use Dropbox API to restore my files and Google brought me here. First of all, a bit about my situation: My computer got a virus that rename all of my files (idk if its recognized as rename or delete on Dropbox) and they are all synced to Dropbox. I want to download all my original files using Dropbox API. As i can see on web interface, I can download them individually but I got like thousand files so I couldn't do it. My problem: I used Python API wrapper to work

How to use Dropbox Chooser without forcing the user to login to the Dropbox account used

孤人 提交于 2019-12-25 04:54:07
问题 I am putting a Dropbox Chooser together. The idea is that site users will have access to the Dropbox button and will be able to download any file they want. This is working fine when I login to the account in question but I can't ask used to login to this account. I can't figure out what needs to be changed, the domain used is added to the Dropbox app settings, here is my test code: <!DOCTYPE html> <html> <head> <title>TODO supply a title</title> <meta charset="UTF-8"> <meta name="viewport"

Using Dropbox v2 API from Browser

邮差的信 提交于 2019-12-25 03:03:12
问题 I'm trying to upload data to dropbox via webbrowser (FF 42.0, PhantomJS 1.9.8) and dropbox v2 api. My function looks like this function(path, data, callback) { $.ajax({ url: 'https://content.dropboxapi.com/2/files/upload', type: 'post', contentType: 'application/octet-stream', beforeSend: function(jqXHR) { jqXHR.setRequestHeader("Content-Type","application/octet-stream"); }, data: data, headers: { "Authorization": "Bearer " + token, "Dropbox-API-Arg": '{"path": "' + path + ',"mode": "add",

Dropbox showing error, when asking for access token

守給你的承諾、 提交于 2019-12-25 02:58:11
问题 I I am working on a PHP application in which I need to integrate Dropbox. I am doing this in file1.php file. Following is the code: require_once ("../dropbox-sdk/Dropbox/autoload.php"); use \Dropbox as dbx; $appInfo = dbx\AppInfo::loadFromJsonFile("../dropbox-config.json"); $csrfTokenStore = new dbx\ArrayEntryStore($_SESSION, 'dropbox-auth-csrf-token'); $webAuth = new dbx\WebAuth($appInfo, "MyApp", "https://example.net/app2/OAuthRedirectURI.php", $csrfTokenStore); $authorizeUrl = $webAuth-

Does Google Drive API support providing link direct to a file which is available in Dropbox API

╄→尐↘猪︶ㄣ 提交于 2019-12-24 13:41:59
问题 If I want to let some thirdparty user to download file directly from some Dropbox account I can ask Dropbox to provide direct link, which expires after 4 hours via this /media method. In Google Drive there is downloadUrl property but it requires passing accessToken. Is there any other way to make Google Drive behave a little more like Dropbox? 回答1: Yes, there is the webContentLink field in a file that you can pass to a user to download the file in their browser. 来源: https://stackoverflow.com

Link error adding library built with Clang to iOS app built with GCC

自古美人都是妖i 提交于 2019-12-24 11:34:46
问题 I'm trying to add the Dropbox Sync API (v1.1.2) to an iOS app built with Marmalade (v6.3). I'm getting the following link error: Undefined symbols for architecture armv7: "___udivmodsi4", referenced from: _sqlite3BitvecSet in libDropbox.a(sqlite3.o) _sqlite3BitvecClear in libDropbox.a(sqlite3.o) _sqlite3BitvecTest in libDropbox.a(sqlite3.o) ld: symbol(s) not found for architecture armv7 Googling for pertinent parts of that error message finds a number of users of a certain SQLCipher library

Cannot install a jar package without an IDE

狂风中的少年 提交于 2019-12-24 08:38:58
问题 I have a dropbox-core-sdk-1.7.5.jar archive file. I tried to install it as a package in my Home directory with: java -jar dropbox-core-sdk-1.7.5.jar but the terminal spits out: "no main manifest attribute, in dropbox-core-sdk-1.7.5.jar". The thread Can't execute jar- file: "no main manifest attribute" suggests that I need to add a line similar to "Main-Class: com.mypackage.MyClass" META-INF/MANIFEST.MF file. But I don't know what class I'm supposed to type in. I've found instructions on http:

Uploading Excel files to dropbox?

吃可爱长大的小学妹 提交于 2019-12-24 07:29:32
问题 I am trying to upload a file I am creating using ExcelWriter via pandas. Here is what I have so far: output = BytesIO() writer = pd.ExcelWriter(output, engine='xlsxwriter') df1.to_excel(writer, sheet_name='raw_data', index=False) df_totals.to_excel(writer, sheet_name='totals', index=False) writer.save() output.seek(0) dbx.files_upload(output, 'my_path/test.xlsx') It is throwing the error: TypeError: expected request_binary as binary type, got <class '_io.BytesIO'> The file_upload method takes

Uploading Excel files to dropbox?

北城余情 提交于 2019-12-24 07:29:07
问题 I am trying to upload a file I am creating using ExcelWriter via pandas. Here is what I have so far: output = BytesIO() writer = pd.ExcelWriter(output, engine='xlsxwriter') df1.to_excel(writer, sheet_name='raw_data', index=False) df_totals.to_excel(writer, sheet_name='totals', index=False) writer.save() output.seek(0) dbx.files_upload(output, 'my_path/test.xlsx') It is throwing the error: TypeError: expected request_binary as binary type, got <class '_io.BytesIO'> The file_upload method takes

Upload file with Dropbox SDK for iOS get Error Code 403

旧时模样 提交于 2019-12-24 04:36:07
问题 i'm trying to upload a file using the dropbox SDK for ios, i have setup correctly the framework, and link with the dropbox account, but now when i'm trying to upload the file i receive this error: [WARNING] DropboxSDK: error making request to /1/files_put/sandbox/DBApp.sqlite - (403) Forbidden 2013-08-28 15:07:12.418 MyApp[3761:c07] File upload failed with error - Error Domain=dropbox.com Code=403 "The operation couldn’t be completed. (dropbox.com error 403.)" UserInfo=0x11e77ef0 {sourcePath=