public function SendinblueMailin::createUpdateUser in SendinBlue 7
Same name and namespace in other branches
- 7.2 includes/sendinblue.mailin.php \SendinblueMailin::createUpdateUser()
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.
Return value
array A response code.
File
- includes/
sendinblue.mailin.php, line 302 - Rest class file.
Class
- SendinblueMailin
- Sendinblue REST client.
Code
public function createUpdateUser($email, $attributes = array(), $blacklisted = array(), $listid = '', $listid_unlink = '') {
return $this
->post("user/createdituser", drupal_json_encode(array(
"email" => $email,
"attributes" => $attributes,
"blacklisted" => $blacklisted,
"listid" => $listid,
"listid_unlink" => $listid_unlink,
)));
}