GetPreview
class GetPreview extends ContentDownloadOperation
Get a preview for a file. Currently previews are only generated for the files with the following extensions:
.doc, .docx, .docm, .ppt, .pps, .ppsx, .ppsm, .pptx, .pptm, .xls, .xlsx, .xlsm, .rtf
Constants
API_VERSION |
Dropbox API version |
HOST |
The host for this set of operations |
Methods
Operation constructor.
Sets the default token to use with the constructor
Sets the default $async value for the constructor
Perform the operation, returning a promise or raw response object
Details
in AbstractOperation at line line 81
__construct(
bool $async = null,
string $accessToken = null)
Operation constructor.
in AbstractOperation at line line 101
final static
setDefaultToken(
string $token)
Sets the default token to use with the constructor
in AbstractOperation at line line 121
boolean
isAsync()
Return whether we're operating in async mode
in AbstractOperation at line line 134
final
AbstractOperation
setAsync(
bool $async)
Sets the sync/async operation mode
in AbstractOperation at line line 148
final static
setDefaultAsync(
bool $async)
Sets the default $async value for the constructor
in ContentDownloadOperation at line line 42
PromiseInterface|ResponseInterface
send(
string $url,
string $path,
Options $opts = null)
Send our request
at line line 33
PromiseInterface|ResponseInterface
raw(
string $path)
Perform the operation, returning a promise or raw response object