dropbox-api

Dropbox download file API stopped working with 400 error

删除回忆录丶 提交于 2019-12-13 06:18:13
问题 I use dropbox download file API , and i got a token , but it's return 400 bad request error "Error in call to API function "files/download": Must provide HTTP header "Authorization" or URL parameter "authorization" I follow dropbox api doc , but it cannot work ~""~ How do I fix it ? this is my code ( angular2 ) downloadFile(fileid){ let headers = new Headers(); headers.append('Authorization', 'Bearer ' + this.accessToken); headers.append('Dropbox-API-Arg','path:'+ fileid); return this.http

Dropbox api v2 sdk for ruby

萝らか妹 提交于 2019-12-13 06:17:34
问题 Has anyone came across Dropbox migration from API v1 to v2? I could not find ruby-sdk for v2 in official documentation. If I want to migrate from v1 to v2 , Should I manually do all the changes in existing ruby-sdk for v1 ? 回答1: Unfortunately, Dropbox does not offer an official Ruby SDK for Dropbox API v2. You'd either need to modify the SDK/library you're using, or implement your app using the HTTP endpoints directly. There's a migration guide here: https://www.dropbox.com/developers

Aceess only pdf file using Dropbox Chooser in Android

假如想象 提交于 2019-12-13 05:45:18
问题 I downloaded a simple demo for Dropbox Chooser & it works fine for me, but how can I set the file type for chooser same as for JS Chooser? JavaScript is able to set file type for chooser like so: set options param with extensions: ['.pdf', '.doc', '.docx'] 回答1: The Chooser on Android doesn't support file extension filtering. (This answer was deleted earlier... if someone is inclined to delete it again, please at least give a hint as to why.) 来源: https://stackoverflow.com/questions/27813873

dropbox oauth token flow: redirect without needing to click “allow”?

女生的网名这么多〃 提交于 2019-12-13 05:36:56
问题 I am learning to use dropbox APIs and got confused when came up with the token flow. As guide indicates, the flow should be like this: the app redirect the user to a Dropbox webpage, i.e. .../oauth2/authorize user logs in and approves the app redirect back to the app. At this point, the app gets an access token. However, when i requested the URL: .../oauth2/authorize?client_id=xxx&response_type=token&redirect_uri=xxx I was directly redirect to the destination with REDIRECT_URI = "#access

How Should I get all images(including full URL) from Dropbox using Dropbox Core API in android app?

十年热恋 提交于 2019-12-13 05:20:03
问题 I need to get all the images on Dropbox with its full URL(not only name) as I need to display images as a list in my android app. I am using Dropbox core API and called API as following: DropboxAPI.Entry existingEntry= mDBApi.metadata("/", 1000, null, true, null); Using above I got all the files listed and also got its name but couldn't get full URL of each file. Any help is highly appreciated. Thanks in advance. 回答1: This depends on what exactly you need to do, and if you actually need a URL

Dropbox API list_folder functions

五迷三道 提交于 2019-12-13 05:13:23
问题 The Dropbox API provides two functions to list the contents of a folder list_folders and list_folders_continue with both returning a has_more:true when the listing has not yet been completed. I created 1000 dummy files in my Dropbox apps folder and tested them out. Even with that many files the full listing was returned by the list_folders function. That is not a problem. However, I would like to know when , i.e at what sort of file count, has_more:true will occur. I hope that someone here

how to upload file from codeigniter app to dropbox

…衆ロ難τιáo~ 提交于 2019-12-13 05:05:06
问题 I have a controller to upload image to my web server. I want to upload that image to dropbox as well during the process. how would I do it? This is my simple upload.php controller: function index() { // get the binary data $file = file_get_contents("php://input"); // prepare new name for upload image $name =rand().time().'jpg'; $path = site_url('photo'); // save to server directory file_put_contents($path.$name, $file); // save the name and id of the post to post photo table $input = array(

dropbox api output needs to be changed in my code

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-13 04:20:24
问题 I am using php sdk provided by Dropbox Core API. Everything is working fine... but need to update the output... I am getting image's name as an output... But I need to diaplay images itself... Editing this question from this line: The problem I am facing is my api is fetching only one folder's data(Images) and surprisingly this folder is created by the app itself...!!! I have made some changes to my index.php file to get my desired output but it seems not working. Please look at my below

Upload file to Windows Azure with only the link of the file is provided

百般思念 提交于 2019-12-13 03:39:24
问题 How can I upload a file in azure if I only have the URL of the file to upload. In this case, i 'm using Dropbox file chooser which selects file from dropbox and returns its url path. eq https://www.dropbox.com/s/o9myet72y19iaan/Getting%20Started.pdf Now we need the file to be stored in Windows Azure blob. What is the easiest way to do this without downloading the file first. I'm planning to use a asp.net web api for the uploading of file to azure blob. 回答1: At first, I thought it should be

Dropbox Core API 0 bytes size in metadata for image

偶尔善良 提交于 2019-12-13 02:54:06
问题 I'm using Dropox Core API for my App. I retrieve all the metadata with the good endpoint. But sometimes I got metadata like this : "size": "0 bytes", "rev": "38af1b183490", "thumb_exists": true, "bytes": 2453963, "modified": "Mon, 07 Apr 2014 23:13:16 +0000", "client_mtime": "Thu, 29 Aug 2013 01:12:02 +0000", "path": "/Photos/flower.jpg", "photo_info": { "lat_long": [ 37.77256666666666, -122.45934166666667 ], "time_taken": "Wed, 28 Aug 2013 18:12:02 +0000" }, "is_dir": false, "icon": "page