misterpaladin/dropbox-v2

Library for Dropbox v2 API

1.0.2 2017-05-08 04:29 UTC

This package is auto-updated.

Last update: 2024-05-13 11:04:55 UTC


README

Class: \MisterPaladin\Dropbox\App

Visibility Function
public __construct(string $accessToken) : void
Add endpoints instances
public __get(string $key) : mixed
Access to static properties

Class: \MisterPaladin\Dropbox\Endpoints\EndpointGroup (abstract)

Visibility Function
public __construct(mixed $app) : void
Create new endpoints instance
protected contentDownloadRequest(mixed $method, mixed $path, array $parameters=array()) : void
protected rcpRequest(string $method, string $path, array $parameters=array()) : mixed
Create and send request

Class: \MisterPaladin\Dropbox\Endpoints\Files

Visibility Function
public copy(array $parameters) : object
Copy a file or folder to a different location in the user's Dropbox. If the source path is a folder all its contents will be copied.
public createFolder(array $parameters) : object
Create a folder at a given path.
public delete(array $parameters) : object
Delete the file or folder at a given path. If the path is a folder, all its contents will be deleted too. A successful response indicates that the file or folder was deleted. The returned metadata will be the corresponding FileMetadata or FolderMetadata for the item at time of deletion, and not a DeletedMetadata object.
public download(array $parameters) : void
Download a file from a user's Dropbox.
public getMetadata(array $parameters=array()) : object
Returns the metadata for a file or folder. Note: Metadata for the root folder is unsupported.
public getTemporaryLink(array $parameters) : object
Get a temporary link to stream content of a file. This link will expire in four hours and afterwards you will get 410 Gone. Content-Type of the link is determined automatically by the file's mime type.
protected meta(object $data) : object
Make meta object

This class extends \MisterPaladin\Dropbox\Endpoints\EndpointGroup

Class: \MisterPaladin\Dropbox\Endpoints\Users

Visibility Function
public getCurrentAccount() : object
Get information about the current user's account.
public getSpaceUsage() : mixed

This class extends \MisterPaladin\Dropbox\Endpoints\EndpointGroup

Class: \MisterPaladin\Dropbox\Exceptions\DropboxAPIException

Visibility Function

This class extends \Exception

This class implements \Throwable

Class: \MisterPaladin\Dropbox\Exceptions\DropboxAppException

Visibility Function

This class extends \Exception

This class implements \Throwable

Class: \MisterPaladin\Dropbox\Types\Account

Visibility Function

This class extends \MisterPaladin\Dropbox\Types\DropboxType

Class: \MisterPaladin\Dropbox\Types\DeletedMetadata

Visibility Function

This class extends \MisterPaladin\Dropbox\Types\DropboxType

Class: \MisterPaladin\Dropbox\Types\DropboxType

Visibility Function
public __construct(mixed $attributes) : void

Class: \MisterPaladin\Dropbox\Types\FileMetadata

Visibility Function

This class extends \MisterPaladin\Dropbox\Types\DropboxType

Class: \MisterPaladin\Dropbox\Types\FolderMetadata

Visibility Function

This class extends \MisterPaladin\Dropbox\Types\DropboxType

Class: \MisterPaladin\Dropbox\Types\SpaceUsage

Visibility Function

This class extends \MisterPaladin\Dropbox\Types\DropboxType

Class: \MisterPaladin\Dropbox\Types\TemporaryLink

Visibility Function

This class extends \MisterPaladin\Dropbox\Types\DropboxType