Dropbox class

Dropbox is the easiest way to store, sync, and, share files online. There's no complicated interface to learn. Dropbox works seamlessly with your operating system and automatically makes sure your files are up-to-date. Available for Windows, Mac, and Linux.

Grab your copy

Download Dropbox (1.0.6)

Follow development on GitHub

Follow Dropbox

About

PHP Dropbox is a (wrapper)class to communicate with Dropbox.

License

Dropbox is BSD licensed.

Documentation

The class is well documented inline. If you use a decent IDE you'll see that each method is documented with PHPDoc.

More documentation

Sites that use this class

Do you know a site that uses this class? Use the form below.

Comments

Henrik

Henrik wrote:
24/10/2010

Hi

When I try to use accountInfo my php script just stop. I have a working script that can upload files and I set the auth token/secrets.

My question is how do I use accountInfo the correct way?

Now I try to do $var = $dropb->accountInfo(); but thats dosent work.

Tijs

Tijs wrote:
25/10/2010

@Henrik: I will write a tutorial in the near future.

Nico

Nico wrote:
19/12/2010

Hey,
I always get this error: "Uncaught exception 'DropboxException' with message 'The input field 'password' was not expected."

I haven't changed anything.

What can I do?

Daniel Hüsken

Daniel Hüsken wrote:
06/03/2011

have fixed it with:
at line 422
{
// add the parameters into the querystring
if(!empty($parameters)) $url .= '?'. $this->buildQuery($parameters);
}

elplace with
{
// add the parameters into the querystring
if(!empty($parameters)) $url .= '?'. $this->buildQuery($parameters);
$options[CURLOPT_POST] = 0;
}

than the bug of Nico is resolved.

Tijs Verkoyen

Tijs Verkoyen wrote:
06/03/2011

Changelog since 1.0.1
- Bugfix: when doing multiple calles where GET and POST is mixed, the postfields should be reset (thx to Daniel Hüsken)

Manuel

Manuel wrote:
10/03/2011

Hello. If I use this, $ file space does not work. If you rename the file without spaces if it works.
$file = "/name file.docx"
$response = $ dropbox -> filesGet ($file);
How to fix it?

Tijs Verkoyen

Tijs Verkoyen wrote:
28/05/2011

Changelog since 1.0.2
- Added methods to enable oauth-usage.

Tijs Verkoyen

Tijs Verkoyen wrote:
28/05/2011

Changelog since 1.0.3
- Corrected the authorize-URL (thx to Jacob Budin).

Tijs Verkoyen

Tijs Verkoyen wrote:
28/05/2011

Changelog since 1.0.4
- Fixed filesPost so it returns a boolean.
- Some code styling

Tijs Verkoyen

Tijs Verkoyen wrote:
17/06/2011

Changelog since 1.0.5
- Fixed filesPost so it can handle folders with spaces.

damir

damir wrote:
04/12/2011

I'm trying to use this API with no luck. I'm testing a simple account info function and I get this error:

Uncaught exception 'DropboxException' with message 'You're using an older version of the Dropbox API with a new API key. Please use the latest version.

hiphopsmurf

hiphopsmurf wrote:
05/12/2011

I am having the same issue as damir... any hopes of updating to the new api version?

Adnan

Adnan wrote:
20/12/2011

IN the download there is a config.php reference in code but no such file. Can you please share it

Add your comment

If you have some feedback, a remark or you just want to say something. Go ahead, use the form below.

 

:

:

:

About me?

Well, I'm Tijs Verkoyen, a self employed Belgian PHP-developer at Sumo Coders.

If you want to know more about me, check my blog (Dutch).

If you really like my work and want to support me, feel free to use the donate-button below.

Spoon

At both companies, we use Spoon. Spoon is a PHP5 Library that we use for building all our Web 2.0 applications.

The classes that you can download from this website are standalone, so each developer is free to use a library/framework/… he likes best.