DropboxRequest
class DropboxRequest (View source)
DropboxRequest
Properties
protected string | $accessToken | Access Token to use for this request | |
protected string | $method | The HTTP method for this request | |
protected array | $params | The params for this request | |
protected string | $endpoint | The Endpoint for this request | |
protected string | $endpointType | The Endpoint Type for this request | |
protected array | $headers | The headers to send with this request | |
protected DropboxFile | $file | File to upload | |
protected string | $contentType | Content Type for the Request |
Methods
Create a new DropboxRequest instance
Get the Request Method
Get the Request Params
Get Access Token for the Request
Get the Endpoint of the Request
Get the Endpoint Type of the Request
Get the Content Type of the Request
Get Request Headers
Get the File to be sent with the Request
Set the Request Method
Set the Request Params
Set Access Token for the Request
Set the Endpoint of the Request
Set the Endpoint Type of the Request
Set Request Headers
Set the Content Type of the Request
Get JSON Encoded Request Body
Get Stream Request Body
Returns true if Request has file to be uploaded
Process Params for the File parameter
Details
at line line 80
__construct($method, $endpoint, $accessToken, $endpointType = 'api', array $params = array(), array $headers = array(), $contentType = null)
Create a new DropboxRequest instance
at line line 99
string
getMethod()
Get the Request Method
at line line 109
array
getParams()
Get the Request Params
at line line 119
string
getAccessToken()
Get Access Token for the Request
at line line 129
string
getEndpoint()
Get the Endpoint of the Request
at line line 139
string
getEndpointType()
Get the Endpoint Type of the Request
at line line 149
string
getContentType()
Get the Content Type of the Request
at line line 159
array
getHeaders()
Get Request Headers
at line line 169
DropboxFile
getFile()
Get the File to be sent with the Request
at line line 181
DropboxRequest
setMethod(string $method)
Set the Request Method
at line line 195
DropboxRequest
setParams(array $params = array())
Set the Request Params
at line line 213
DropboxRequest
setAccessToken(string $accessToken)
Set Access Token for the Request
at line line 227
DropboxRequest
setEndpoint(string $endpoint)
Set the Endpoint of the Request
at line line 241
DropboxRequest
setEndpointType(string $endpointType)
Set the Endpoint Type of the Request
at line line 256
DropboxRequest
setHeaders(array $headers)
Set Request Headers
at line line 270
DropboxRequest
setContentType(string $contentType)
Set the Content Type of the Request
at line line 284
DropboxRequest
setFile(DropboxFile $file)
Set the File to be sent with the Request
at line line 296
RequestBodyJsonEncoded
getJsonBody()
Get JSON Encoded Request Body
at line line 306
RequestBodyStream
getStreamBody()
Get Stream Request Body
at line line 316
boolean
hasFile()
Returns true if Request has file to be uploaded
at line line 328
protected array
processParams(array $params)
Process Params for the File parameter