dropbox-php

Dropbox API v2 files_list_folder

吃可爱长大的小学妹 提交于 2019-12-12 03:48:00
问题 Looking at the list_folder sandbox at dropbox.github.io/dropbox-api-v2-explorer/#files_list_folder I find no way to just return just the folders - basically where ".tag" = "folder" - I get all folders and files in one huge hunk the have to parse out the "folders" There is no way to easily parse the nested folders into some logical way so I can display a list with the sub folders indented in a display. such as Parent ID's would be helpful to match up children & parent folders no sorting

Use of dropbox with core APIs, but avoiding login page

那年仲夏 提交于 2019-12-09 23:25:42
问题 I want to use Dropbox for my file share application, using Core Dropbox APIs. I am using OAuth 2.0 APIs for authentication (Implicit Grant Method). The issue is, In order to obtain the access token, I need to be logged-in to dropbox account or it redirects me to Dropbox login page. I don't want my users to enter the login crediantials. Is there any way to avoid login process, and directly get access token?? Or Alternatively can I do login using some login api in backend, without user

Call to undefined function readline()?

时间秒杀一切 提交于 2019-12-07 02:06:05
问题 I am integrating Dropbox into my PHP based website. When i try to run the following code. i got this Fatal error: Call to undefined function readline() on the last line. require_once "dropbox-sdk/Dropbox/autoload.php"; use \Dropbox as dbx; $appInfo = dbx\AppInfo::loadFromJsonFile("app-info.json"); echo "<pre>"; print_r($appInfo); echo "</pre>"; $webAuth = new dbx\WebAuthNoRedirect($appInfo, "PHP-Example/1.0"); echo "<pre>"; print_r($webAuth); echo "</pre>"; $authorizeUrl = $webAuth->start();

Call to undefined function readline()?

假如想象 提交于 2019-12-05 04:34:28
I am integrating Dropbox into my PHP based website. When i try to run the following code. i got this Fatal error: Call to undefined function readline() on the last line. require_once "dropbox-sdk/Dropbox/autoload.php"; use \Dropbox as dbx; $appInfo = dbx\AppInfo::loadFromJsonFile("app-info.json"); echo "<pre>"; print_r($appInfo); echo "</pre>"; $webAuth = new dbx\WebAuthNoRedirect($appInfo, "PHP-Example/1.0"); echo "<pre>"; print_r($webAuth); echo "</pre>"; $authorizeUrl = $webAuth->start(); echo "1. Go to: " . $authorizeUrl . "\n<br>"; echo "2. Click \"Allow\" (you might have to log in first)

Use of dropbox with core APIs, but avoiding login page

允我心安 提交于 2019-12-04 21:40:10
I want to use Dropbox for my file share application, using Core Dropbox APIs. I am using OAuth 2.0 APIs for authentication (Implicit Grant Method). The issue is, In order to obtain the access token, I need to be logged-in to dropbox account or it redirects me to Dropbox login page. I don't want my users to enter the login crediantials. Is there any way to avoid login process, and directly get access token?? Or Alternatively can I do login using some login api in backend, without user iteraction?? here I am considering a single Dropbox account, whose all necessary crediantials are with me.

Dropbox app destined to interact with only one dropbox account

烂漫一生 提交于 2019-12-03 14:04:53
问题 My need is to have a simple web form that also lets people upload some pdf's. What I was thinking I could do (because of the size and number of uploaded files) is to tie the backend of this app to either my dropbox account or my box.com account. Both services offer similar API's to build apps. However they both assume I want to interact with people's dropbox/box account. I think I kinda want the reverse of that. People would upload files to a web server but I want to upload them

Retrieve contents of a public Dropbox folder?

Deadly 提交于 2019-12-03 03:10:56
Is there a way to retrieve a list of the contents of a public Dropbox folder (preferably in PHP)? This is what a URL to a public file in Dropbox looks like: http://dl.dropbox.com/u/1234567/publikPholder/textytext.txt One would think that jumping up one level to the directory in the URL... http://dl.dropbox.com/u/1234567/publikPholder/ ...would show all the public files. Nope. Nothing but a 404. Looks like this library is pretty complete (although I haven't used it myself), and is probably as simple as (post-auth): $info = $dropbox->getMetaData('Public', true); print_r($info['contents']);

How to backup files from a specific directory to Dropbox using PHP only?

让人想犯罪 __ 提交于 2019-11-30 16:34:34
I would like to create a PHP script to backup files from a particular directory on my website to my Dropbox account. I tried to search for examples and how to work around it but I only found code to backup databases or to buy ready made solutions. This is the code I tried <?php $passw = "jason"; //change this to a password of your choice. if ($_POST) { require 'DropboxUploader.php'; try { // Rename uploaded file to reflect original name if ($_FILES['file']['error'] !== UPLOAD_ERR_OK) throw new Exception('File was not successfully uploaded from your computer.'); $tmpDir = uniqid('/tmpCapes/');

How to copy files from server to Dropbox using PHP? [duplicate]

妖精的绣舞 提交于 2019-11-30 01:01:08
This question already has an answer here: How to backup files from a specific directory to Dropbox using PHP only? 2 answers I think I may have found a PHP program to upload files from a specific folder onto my Dropbox account. The full solution can be found here . The code seems to work because files and folders a like are being uploaded. However, I don't want the files on my server to be compressed beforehand: I want to copy all files with the files and folders within. How can the code be modified please? All I want is to copy a specific directory called uploads from my server to dropbox.

How to copy files from server to Dropbox using PHP? [duplicate]

元气小坏坏 提交于 2019-11-28 21:41:47
问题 This question already has an answer here: How to backup files from a specific directory to Dropbox using PHP only? 2 answers I think I may have found a PHP program to upload files from a specific folder onto my Dropbox account. The full solution can be found here. The code seems to work because files and folders a like are being uploaded. However, I don't want the files on my server to be compressed beforehand: I want to copy all files with the files and folders within. How can the code be