You are here

function MCAPI::listInterestGroupAdd in Mailchimp 7

Same name and namespace in other branches
  1. 5.2 MCAPI.class.php \MCAPI::listInterestGroupAdd()
  2. 5 MCAPI.class.php \MCAPI::listInterestGroupAdd()
  3. 6.2 MCAPI.class.php \MCAPI::listInterestGroupAdd()
  4. 6 MCAPI.class.php \MCAPI::listInterestGroupAdd()

Add a single Interest Group - if interest groups for the List are not yet enabled, adding the first group will automatically turn them on.

Related

@example xml-rpc_listInterestGroupAdd.php

Parameters

string $id the list id to connect to. Get by calling lists():

string $group_name the interest group to add:

Return value

bool true if the request succeeds, otherwise an error will be thrown

File

./MCAPI.class.php, line 1036

Class

MCAPI

Code

function listInterestGroupAdd($id, $group_name) {
  $params = array();
  $params["id"] = $id;
  $params["group_name"] = $group_name;
  return $this
    ->callServer("listInterestGroupAdd", $params);
}