public function SendinblueApiV2::createUpdateUser in SendinBlue 7.2
Create and update user.
Parameters
string $email: An email address of user.
array $attributes: An attributes to update.
array $blacklisted: An array of black user.
string $listid: A new listid.
string $listid_unlink: A link unlink.
Overrides SendInBlueApiInterface::createUpdateUser
File
- includes/
Api/ SendinblueApiV2.php, line 212
Class
- SendinblueApiV2
- Sendinblue REST client.
Code
public function createUpdateUser($email, array $attributes = [], array $blacklisted = [], $listid = '', $listid_unlink = '') {
$this->sIBHttpClient
->post("user/createdituser", drupal_json_encode([
"email" => $email,
"attributes" => $attributes,
"blacklisted" => $blacklisted,
"listid" => $listid,
"listid_unlink" => $listid_unlink,
]));
}