PHP code example of leoamsena / dropbox-api

1. Go to this page and download the library: Download leoamsena/dropbox-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

leoamsena / dropbox-api example snippets


$client = new Spatie\Dropbox\Client($authorizationToken);

//create a folder
$client->createFolder($path);

//list a folder
$client->listFolder($path);

//get a temporary link
$client->getTemporaryLink($path);

$client = new Spatie\Dropbox\Client($authorizationToken);

public function contentEndpointRequest(string $endpoint, array $arguments, $body): ResponseInterface

public function rpcEndpointRequest(string $endpoint, array $parameters): array

$client->rpcEndpointRequest('search', ['path' => '', 'query' => 'bat cave']);