Questions tagged [dropbox-php]

Dropbox PHP SDK is MIT licensed and intended to be useful both as reference documentation and for regular use. However members of Dropbox developer community have also created alternative libraries in other programming languages.

The Dropbox API allows you to build the power of Dropbox directly into your app. The API provides methods to read and write from Dropbox securely, so your users can bring all their important files with them to your app. Get access to Dropbox PHP SDK Development Kit that provides access to the Dropbox REST API.

Source: Dropbox

122 questions
2
votes
3 answers

List files in dropbox folder

Im having problems with the dropbox API. When i try to get the metadata for my folder, i get the data output like this: {"hash":"10f86b5b7c9c9276501f67a71ecd41c9","thumb_exists":false,"bytes":0,"path":"\/","is_dir":true,"size":"0…
Rasmus Pedersen
  • 176
  • 1
  • 13
2
votes
2 answers

Get Info OAuth Dropbox API in PHP

I am trying to get the request token from Dropbox. Till now I have tried countless libraries, some don't work, some are not maintained, and some simply you don't know what to do. So I think it'll be easier for me to make my own functions by using…
Arjun Bajaj
  • 1,932
  • 7
  • 24
  • 41
2
votes
1 answer

Dropbox php api issues

I keep getting issues with dropbox php api, i am just trying to get it to work using getmeta. but i keep getting the following error?? I think the issues is here. public function getToken($email, $password) { throw new…
DCHP
  • 1,111
  • 6
  • 29
  • 53
2
votes
0 answers

Curl error when try to download file using Dropbox API

This is my first attempt using Dropbox API and I'm just following the "Hello World" from PHP SDK. Upload methods is working fine, but download: $app = new DropboxApp("...", "...", "..."); $dropbox = new Dropbox($app); $file =…
marcelo2605
  • 2,734
  • 4
  • 29
  • 55
2
votes
0 answers

Fetch Image from dropbox to generate html by php OR by dropbox APi

I want to fetch an image from a dropbox URL. The URL is below: https://www.dropbox.com/sh/afko74vlm19yimi/AAAJ03JqyS57nHpZlYjZm6zNa?dl=0 How can I use PHP/dropbox api to fetch this image from the above URL and use it in an HTML file?
Amit Kanala
  • 123
  • 1
  • 1
  • 12
2
votes
0 answers

DropBox configration via composer

Hello guys I'm new to composer thing. Previously I had configured dropbox manually in my codeigniter project but my head asked me to do it using composer now. I have configured composer somehow and installed dropbox using composer. Now this was my…
Garden
  • 243
  • 1
  • 4
  • 11
2
votes
0 answers

Access Dropbox API from a Server located in Mainland China?

does anybody know, if the Dropbox API can be accessed from a server located in mainland China? All my tests from within China fail - same Application inside Europe works well. If Dropbox access is really blocked in China - is there any other…
Christian K.
  • 528
  • 6
  • 16
2
votes
1 answer

Redirect loop and sessions issue in Dropbox SDK

I am trying to do some customization on a basic code to authenticate to dropbox. I want my application to authenticate the user to dropbox directly, no third authentication involved. So basically the only authentication I want to have is against…
wti
  • 494
  • 4
  • 19
2
votes
1 answer

Dropbox API no longer working, CSRF mismatch

I use the Dropbox PHP SDK. Everything was working fine and suddenly the authentication process no longer works while no changes have been made to the code in this area. I receive the error 'CSRF Mismatch'. When looking at all CSRF tokens in the URL…
edwardmp
  • 6,339
  • 5
  • 50
  • 77
2
votes
1 answer

unzip or extract a file inside of dropbox using the php api

I'm working on a project with a friend and we would like to find a way to upload a .zip or .rar or .tar file to Dropbox, and then when the file is inside of Dropbox extract the files of that file. Everything must be done using the API. Why we want…
Felipe Millan
  • 849
  • 1
  • 6
  • 5
2
votes
4 answers

Download file from dropbox to the server

I want to download the files from dropbox and need to keep it in my server on behalf of dropbox user. I tried with curl and file_get_contents. But could not succeed. Should I need to use any api method of dropbox ? I could able to download the file…
binoy
  • 1,758
  • 3
  • 21
  • 42
2
votes
1 answer

Open specific folder in Dropbox Chooser

Is it possible to specify which folder to open in Dropbox Chooser (or Dropbox API) ? Right now it opens the root directory
Sasha Shumylo
  • 137
  • 1
  • 8
2
votes
3 answers

Dropbox API: how to use the "path" value to display images

I'm using Dropbox Core API + PHP. I'm dealing with https://api.dropbox.com/1/search/dropbox/ It may be a silly question, but when i get back the json file, similar to [ { "size": "0 bytes", "rev": "35c1f029684fe", …
Francesco
  • 24,839
  • 29
  • 105
  • 152
2
votes
2 answers

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

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.…
maltadolls
  • 191
  • 2
  • 11
1
vote
0 answers

how to import or create a folder in dropbox using php

I was importing files but I don't know how to import an entire folder or create one inside dropbox I was wondering how to make this import a folder not file, below is the encoding I used, what needs to be changed or added to do this? this is the…
1
2
3
8 9