Longpoll
class Longpoll extends AbstractOperation
A longpoll endpoint to wait for changes on an account. In conjunction with list_folder/continue, this call gives you a low-latency way to monitor an account for file changes. The connection will block until there are changes available or a timeout occurs. This endpoint is useful mostly for client-side apps.
Constants
API_VERSION |
Dropbox API version |
HOST |
The host for this operation |
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
at line line 45
PromiseInterface|ResponseInterface
raw(
string $cursor,
LongpollOptions $opts = null)
Perform the operation, returning a promise or raw response object