You are here

function MCAPI::listMergeVarAdd in Mailchimp 5

Same name and namespace in other branches
  1. 5.2 MCAPI.class.php \MCAPI::listMergeVarAdd()
  2. 6.2 MCAPI.class.php \MCAPI::listMergeVarAdd()
  3. 6 MCAPI.class.php \MCAPI::listMergeVarAdd()
  4. 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

MCAPI

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);
}