public function ClientServiceInterface::sendRequest in Sparkpost email 8.2
Same name and namespace in other branches
- 8 src/ClientServiceInterface.php \Drupal\sparkpost\ClientServiceInterface::sendRequest()
Sends the request.
Parameters
string $endpoint: The endpoint to use.
array $data: The data to send.
string $method: The HTTP method to use.
Return value
array The body of the response.
1 method overrides ClientServiceInterface::sendRequest()
- ClientService::sendRequest in src/
ClientService.php - Sends the request.
File
- src/
ClientServiceInterface.php, line 44
Class
- ClientServiceInterface
- Interface for the client service.
Namespace
Drupal\sparkpostCode
public function sendRequest($endpoint, array $data, $method = 'GET');