Download the PHP package agyson/dropbox-api without Composer
On this page you can find all versions of the php package agyson/dropbox-api. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download agyson/dropbox-api
More information about agyson/dropbox-api
Files in agyson/dropbox-api
Package dropbox-api
Short Description A Custom made & minimal implementation of Dropbox API v2
License MIT
Homepage https://github.com/agyson/dropbox-api
Informations about the package dropbox-api
A Custom made & minimal implementation of Dropbox API v2
This is a minimal PHP implementation of the Dropbox API v2. It contains only the methods needed for our flysystem-dropbox adapter. We are open however to PRs that add extra methods to the client.
Here are a few examples on how you can use the package:
Installation
You can install the package via composer:
Usage
SAME AS Spatie\Dropbox
.
The first thing you need to do is get an authorization token at Dropbox. Unlike other companies Dropbox has made this very easy. You can just generate a token in the App Console for any Dropbox API app. You'll find more info at the Dropbox Developer Blog.
With an authorization token you can instantiate a Spatie\Dropbox\Client
.
Look in the source code of Spatie\Dropbox\Client
to discover the methods you can use.
If you do not find your favorite method, you can directly use the contentEndpointRequest
and rpcEndpointRequest
functions.
Here's an example:
If you need to change the subdomain of the endpoint URL used in the API request, you can prefix the endpoint path with subdomain::
.
Here's an example:
License
The MIT License (MIT). Please see License File for more information.
All versions of dropbox-api with dependencies
graham-campbell/guzzle-factory Version ^3.0
guzzlehttp/guzzle Version ^6.2
spatie/flysystem-dropbox Version ^1.2.2