public static function SendinblueManager::subscribeUser in SendinBlue 7
Same name and namespace in other branches
- 7.2 includes/sendinblue.manage.inc \SendinblueManager::subscribeUser()
Subscriber user.
Parameters
string $email: An email address of subscriber.
array $info: A data of subscriber.
array $listids: An array of list id.
Return value
string A response information.
1 call to SendinblueManager::subscribeUser()
- sendinblue_signup_subscribe_form_validate in ./
sendinblue.module - Validate handler to add users to lists on subscription form submission.
File
- includes/
sendinblue.manage.inc, line 525 - Manage class file.
Class
- SendinblueManager
- Basic manager of module.
Code
public static function subscribeUser($email, $info = array(), $listids = array()) {
$access_key = variable_get(self::ACCESS_KEY, '');
$mailin = new SendinblueMailin(self::API_URL, $access_key);
$response = $mailin
->createUpdateUser($email, $info, 0, $listids, NULL);
return $response['code'];
}