function MCAPI::listMergeVarAdd in Mailchimp 5.2
Same name and namespace in other branches
- 5 MCAPI.class.php \MCAPI::listMergeVarAdd()
- 6.2 MCAPI.class.php \MCAPI::listMergeVarAdd()
- 6 MCAPI.class.php \MCAPI::listMergeVarAdd()
- 7 MCAPI.class.php \MCAPI::listMergeVarAdd()
Add a new merge tag to a given list
Related
@example xml-rpc_listMergeVarAdd.php
Parameters
string $id the list id to connect to:
string $tag The merge tag to add, e.g. FNAME:
string $name The long description of the tag being added, used for user displays:
boolean $req optional Whether or not to require this field to be filled in, defaults to false:
Return value
bool true if the request succeeds, otherwise an error will be thrown
File
- ./
MCAPI.class.php, line 639
Class
Code
function listMergeVarAdd($id, $tag, $name, $req = false) {
$params = array();
$params["id"] = $id;
$params["tag"] = $tag;
$params["name"] = $name;
$params["req"] = $req;
return $this
->callServer("listMergeVarAdd", $params);
}