Skip to content

Configuration

Kunal Varma edited this page Jun 28, 2016 · 4 revisions

Configuration

Firstly, the DropboxApp class needs to be configured with the client_id and client_secret obtained from the Dropbox Developer App Dashboard, by creating an Application.

use Kunnu\Dropbox\DropboxApp;

$app = new DropboxApp("client_id", "client_secret");

If you already have an access token, you can pass it to the constructor above as the third argument.

$app = new DropboxApp("client_id", "client_secret", 'access_token');

The Dropbox service class is required to work with the Dropbox API. To configure the Dropbox service class, an instance of the above created DropboxApp needs to be passed as the first parameter.

use Kunnu\Dropbox\Dropbox;

$dropbox = new Dropbox($app);

Advanced Configuration

Clone this wiki locally