class DropboxGuzzleHttpClient implements DropboxHttpClientInterface (View source)

DropboxGuzzleHttpClient

Properties

protected Client $client GuzzleHttp client

Methods

__construct(Client $client = null)

Create a new DropboxGuzzleHttpClient instance

send(string $url, string $method, string|resource|StreamInterface $body, array $headers = array(), array $options = array())

Send request to the server and fetch the raw response

string
getResponseBody(string|ResponseInterface $response)

Get the Response Body

Details

at line line 30
__construct(Client $client = null)

Create a new DropboxGuzzleHttpClient instance

Parameters

Client $client GuzzleHttp Client

at line line 49
DropboxRawResponse send(string $url, string $method, string|resource|StreamInterface $body, array $headers = array(), array $options = array())

Send request to the server and fetch the raw response

Parameters

string $url URL/Endpoint to send the request to
string $method Request Method
string|resource|StreamInterface $body Request Body
array $headers Request Headers
array $options Additional Options

Return Value

DropboxRawResponse Raw response from the server

Exceptions

DropboxClientException

at line line 87
protected string getResponseBody(string|ResponseInterface $response)

Get the Response Body

Parameters

string|ResponseInterface $response Response object

Return Value

string