You are here

public static function SendinblueManager::getLists in SendinBlue 7

Same name and namespace in other branches
  1. 7.2 includes/sendinblue.manage.inc \SendinblueManager::getLists()

Get lists.

Return value

array An array of lists.

1 call to SendinblueManager::getLists()
sendinblue_signup_form in includes/sendinblue_signup.admin.inc
Return a form for adding/editing a sendinblue signup form.

File

includes/sendinblue.manage.inc, line 411
Manage class file.

Class

SendinblueManager
Basic manager of module.

Code

public static function getLists() {
  $access_key = variable_get(self::ACCESS_KEY, '');
  $mailin = new SendinblueMailin(self::API_URL, $access_key);
  $response = $mailin
    ->getLists();
  if ($response['code'] == 'success' && is_array($response['data'])) {
    return $response['data'];
  }
  return array();
}