You are here

public function SendinblueHttpClient::post in SendinBlue 8

Same name and namespace in other branches
  1. 8.2 src/Tools/Http/SendinblueHttpClient.php \Drupal\sendinblue\Tools\Http\SendinblueHttpClient::post()

Post Request of API.

Parameters

string $resource: A request action.

string $input: A data of curl request.

Return value

array A respond data.

File

src/Tools/Http/SendinblueHttpClient.php, line 206

Class

SendinblueHttpClient
Sendinblue REST client.

Namespace

Drupal\sendinblue\Tools\Http

Code

public function post($resource, $input) {
  return $this
    ->doRequest($resource, 'POST', $input);
}