public function SendinblueMailin::__construct in SendinBlue 7
Same name and namespace in other branches
- 7.2 includes/sendinblue.mailin.php \SendinblueMailin::__construct()
Constructor.
Parameters
string $base_url: A request url of api.
string $api_key: A access key of api.
File
- includes/
sendinblue.mailin.php, line 23 - Rest class file.
Class
- SendinblueMailin
- Sendinblue REST client.
Code
public function __construct($base_url, $api_key) {
if (!function_exists('curl_init')) {
$msg = 'SendinBlue requires CURL module';
watchdog('sendinblue', $msg, NULL, WATCHDOG_ERROR);
return;
}
$this->baseUrl = $base_url;
$this->apiKey = $api_key;
}