function MCAPI::listInterestGroupAdd in Mailchimp 6.2
Same name and namespace in other branches
- 5.2 MCAPI.class.php \MCAPI::listInterestGroupAdd()
- 5 MCAPI.class.php \MCAPI::listInterestGroupAdd()
- 6 MCAPI.class.php \MCAPI::listInterestGroupAdd()
- 7 MCAPI.class.php \MCAPI::listInterestGroupAdd()
<strong>DEPRECATED:</strong> 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 - group names must be unique within a grouping:
int optional $grouping_id The grouping to add the new group to - get using listInterestGrouping() . If not supplied, the first grouping on the list is used.:
Return value
bool true if the request succeeds, otherwise an error will be thrown
Deprecated
See listInterestGroupingAdd() for replacement
File
- ./
MCAPI.class.php, line 1159
Class
Code
function listInterestGroupAdd($id, $group_name, $grouping_id = NULL) {
$params = array();
$params["id"] = $id;
$params["group_name"] = $group_name;
$params["grouping_id"] = $grouping_id;
return $this
->callServer("listInterestGroupAdd", $params);
}