DropboxResponse
class DropboxResponse (View source)
Properties
protected int | $httpStatusCode | The HTTP status code response | |
protected array | $headers | The headers returned | |
protected string | $body | The raw body of the response | |
protected array | $decodedBody | The decoded body of the response | |
protected DropboxRequest | $request | The original request that returned this response |
Methods
__construct(DropboxRequest $request, string|null $body = null, int|null $httpStatusCode = null, array $headers = array())
Create a new DropboxResponse instance
getRequest()
Get the Request Request
string
getBody()
Get the Response Body
string
getDecodedBody()
Get the Decoded Body
string
getAccessToken()
Get Access Token for the Request
array
getHeaders()
Get Request Headers
int
getHttpStatusCode()
Get the HTTP Status Code
void
decodeBody()
Decode the Body
Details
at line line 49
__construct(DropboxRequest $request, string|null $body = null, int|null $httpStatusCode = null, array $headers = array())
Create a new DropboxResponse instance
at line line 65
DropboxRequest
getRequest()
Get the Request Request
at line line 75
string
getBody()
Get the Response Body
at line line 85
string
getDecodedBody()
Get the Decoded Body
at line line 95
string
getAccessToken()
Get Access Token for the Request
at line line 105
array
getHeaders()
Get Request Headers
at line line 115
int
getHttpStatusCode()
Get the HTTP Status Code
at line line 125
protected void
decodeBody()
Decode the Body