diff --git a/PHP/ContactService-Sample.php b/PHP/ContactService-Sample.php
index d453414..c0c14de 100644
--- a/PHP/ContactService-Sample.php
+++ b/PHP/ContactService-Sample.php
@@ -1,10 +1,16 @@
send($call);
if(!$result->faultCode()) {
- print "Contact added to group " . $GID;
+ print "Tag " . $TID . " added to contact.";
print "
";
} else {
print $result->faultCode() . "
";
@@ -45,24 +51,31 @@ function addGrp($CID, $GID) {
}
}
-##############################################
-###Our Function to add people to a campaign###
-##############################################
-function addCamp($CID, $CMP) {
+################################################################################
+###Our Function to add people to a Follow up sequence ###
+################################################################################
+function addCamp($CID, $FUS) {
###Set up global variables###
global $client, $key;
-###Set up the call to add to the campaign###
+################################################################################
+### Note: at the time that the API was written "Campaigns" were actually ###
+### Follow up sequences. This is why the action to add a user to a Follow up ###
+### sequence is called "addToCampaign". ###
+### ###
+################################################################################
+
+###Set up the call to add to the Follow up sequence###
$call = new xmlrpcmsg("ContactService.addToCampaign", array(
php_xmlrpc_encode($key), #The encrypted API key
php_xmlrpc_encode($CID), #The contact ID
- php_xmlrpc_encode($CMP), #The Campaign ID
+ php_xmlrpc_encode($FUS), #The Follow up sequence ID
));
###Send the call###
$result = $client->send($call);
if(!$result->faultCode()) {
- print "Contact added to Campaign " . $CMP;
+ print "Contact added to Follow up sequence " . $CMP;
print "
";
} else {
print $result->faultCode() . "
";
@@ -105,9 +118,9 @@ function addCamp($CID, $CMP) {
print $result->faultString() . "
";
}
-##########################################################
-###Check to see what newsgroups/campaigns were selected###
-##########################################################
+################################################################################
+###Check to see what tags/Follow up sequences were selected ###
+################################################################################
if(isset($_POST['news1'])) {
addGrp($conID,91);
}