You are here

public function SendinblueMailin::getCampaigns in SendinBlue 7

Same name and namespace in other branches
  1. 7.2 includes/sendinblue.mailin.php \SendinblueMailin::getCampaigns()

Get campaigns by type.

Parameters

string $type: A campaign type.

Return value

array An array of campaigns.

File

includes/sendinblue.mailin.php, line 190
Rest class file.

Class

SendinblueMailin
Sendinblue REST client.

Code

public function getCampaigns($type) {
  return $this
    ->get("campaign/detailsv2", drupal_json_encode(array(
    "type" => $type,
  )));
}