Exemplo n.º 1
0
    echo $retval;
}
?>



=======
<?php 
/**
This Example shows how to get the list of existing Events
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->eventUpdateFBEvent("2436", "Sunday 30 September, 2013 at 05:00 PM", "UsdkljfK", "");
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Events Returned:\n";
    echo $retval;
}
Exemplo n.º 2
0
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "New Email ID:" . $retval . "\n";
}
?>
=======
<?php 
/**
This Example shows how to update Subaccount details
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$accountstruct = array();
$clientid = "XXXX";
// put in your subaccount client ID which should be a number
$accountstruct["email"] = "*****@*****.**";
$accountstruct["firstname"] = "duserfname";
$accountstruct["password"] = "******";
$accountstruct["phone"] = "933323233";
$accountstruct["clientid"] = $clientid;
$retval = $api->subAccountUpdate($accountstruct);
Exemplo n.º 3
0
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    $segmentID = $retval[0]['id'];
    $retval = $api->segmentGetDetail($segmentID);
    print_r($retval);
}
?>
=======
<?php 
/**
Get the segments in your account.
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->segmentGet("", 1, 10, "");
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    $segmentID = $retval[0]['id'];
    $retval = $api->segmentGetDetail($segmentID);
    print_r($retval);
Exemplo n.º 4
0
        echo "<tr>";
        echo "<td>" . $reportData['sequence'] . "</td><td>" . $reportData['URL'] . "</td>";
        echo "</tr>";
    }
    echo "</table>";
}
?>
=======
<?php 
/**
Get the link URLS for the given campaign.
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->reportGetEmailLinks($emailID);
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Link URLS Returned:\n";
    echo "<table border=1>";
    echo "<tr><td>  </td><td>URL </td></tr>";
Exemplo n.º 5
0
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "New Poll ID:" . $retval . "\n";
}
?>
=======
<?php 
/**
This Example shows how to create a new Poll
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$pollDetail['name'] = 'Resturant Poll 2';
$pollDetail['question'] = 'Do you eat out regularly';
$pollDetail['answer1'] = 'Never';
$pollDetail['answer2'] = 'Once a year';
$pollDetail['answer3'] = 'Every Month';
$pollDetail['answer4'] = 'Every Week';
$pollDetail['answer5'] = 'Daily';
$pollDetail['answercolor'] = '#0000ff';
$pollDetail['answerfont'] = 'Comic Sans Ms';
Exemplo n.º 6
0
    echo $retval;
}
?>



=======
<?php 
/**
This Example shows how to get the list of existing Events
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->eventUpdatePayStatus("12513", "11553", "");
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Events Returned:\n";
    echo $retval;
}
Exemplo n.º 7
0
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Webhook Updated\n";
}
?>
=======
<?php 
/**
This Example shows how to update an existing Email
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
/**
		Fetch the latest contact list ID, so we can retrieve the target contact list ID.
	**/
$contactList = $api->listGet("", 1, 1, "", "");
$listID = $contactList[0]['id'];
/**
	Fetch the latest webhook, so we can retrieve the webhook ID.
	**/
$webhookList = $api->webhookGet($listID);
Exemplo n.º 8
0
    echo sizeof($retval) . " Criteria Returned:\n";
    foreach ($retval as $listData) {
        $criteriaID = $listData['id'];
    }
    $api->segmentDeleteCriteria($segmentID, $criteriaID);
}
?>
=======
<?php 
/**
Get the contacts from the contact list.
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->segmentGet("", 1, 1, "");
foreach ($retval as $listData) {
    $segmentID = $listData['id'];
}
$retval = $api->segmentGetCriteriaList($segmentID);
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
Exemplo n.º 9
0
        echo $rec['sequence'] . ")" . $rec['template_name'] . "<br>";
        echo $rec['template_source'] . "<br>";
        echo $rec['preview_small'];
    }
}
?>
=======
<?php 
/**
This Example shows how to get the list of existing Emails
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->emailTemplateGetList(1, 10);
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    foreach ($retval as $rec) {
        echo $rec['sequence'] . ")" . $rec['template_name'] . "<br>";
        echo $rec['template_source'] . "<br>";
Exemplo n.º 10
0
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo $retval;
}
?>
=======
<?php 
/**
This Example shows how to get details of an existing Email
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$emailStructure = $api->emailGet("", -1, 1, 5, "", "");
$emailID = $emailStructure[0]['id'];
$newName = "Welcome";
$retval = $api->emailCheckName($emailID, $newName);
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
Exemplo n.º 11
0
    echo $videoData['sequence'] . ".)Videos:)" . $videoData['client_videos'];
    echo "VideosDescription:)" . $videoData['video_description'];
    echo "VideosEmbed:)" . $videoData['video_embed'];
    echo "VideoHeight:)" . $imgData['video_height'];
}
?>
=======
<?php 
/**
This Example shows how to get details of an existing video
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->videoGetList(1, 10);
$videoID = $retval[0]['id'];
$videoData = array();
$videoData = $api->videoGet($videoID);
if (!$videoData) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
Exemplo n.º 12
0
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Total Available Template are " . $retval;
}
?>
=======
<?php 
/**
This Example shows how to get the list of existing Emails
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->emailTemplateGetCount();
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Total Available Template are " . $retval;
}
?>
Exemplo n.º 13
0
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "New Email ID:" . $retval . "\n";
}
?>
=======
<?php 
/**
This Example shows how to create a new Autoresponder
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$Autoresponder = array();
$Autoresponder["autoresponderName"] = "Autoresponder 1";
$Autoresponder["contactListID"] = "11223";
// id of the contact list
$Autoresponder["isSegment"] = "false";
$Autoresponder["fromName"] = "Joe de maggio";
$Autoresponder["fromEmail"] = "*****@*****.**";
$Autoresponder["isSegment"] = "false";
$Autoresponder["webpageVersion"] = "false";
Exemplo n.º 14
0
    echo $retval;
}
?>



=======
<?php 
/**
This Example shows how to Set the event refund
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->eventRefund("12513", "");
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Events Returned:\n";
    echo $retval;
}
Exemplo n.º 15
0
    echo "</table>";
}
?>



=======
<?php 
/**
This Example shows how to get the list of existing Events
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->eventGetList("", "", 1, 5, "", "");
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Events Returned:\n";
    echo "<table>";
    echo "<tr><td>Event ID</td><td>Event Name </td><td> status</td><td> sold </td><td> attendeemax </td><td> startdate </td><td> enddate </td><td> repeat </td><td> timezone </td>";
Exemplo n.º 16
0
    echo $retval;
}
?>



=======
<?php 
/**
This Example shows how to get the list of existing Events
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->eventCreateFBEvent("12513", "", "", "", "", "", "", "");
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Events Returned:\n";
    echo $retval;
}
Exemplo n.º 17
0
    echo "<table>";
    foreach ($retval as $listData) {
        echo "<tr><td>" . $listData . "</td></tr>";
    }
    echo "</table>";
}
?>
=======
<?php 
/**
Fetch all tokens for the user.
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->tokenGet($username, $password);
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Tokens Returned:\n";
    echo "<table>";
    foreach ($retval as $listData) {
Exemplo n.º 18
0
        echo "<td>" . $webhookData['id'] . "</td><td>" . $webhookData['url'] . "</td><td>" . $webhookData['subscribes'] . "</td><td>" . $webhookData['unsubscribes'] . "</td><td>" . $webhookData['profile_updates'] . "</td><td>" . $webhookData['cleaned_address'] . "</td><td>" . $webhookData['email_changed'] . "</td><td>" . $webhookData['modifiedDate'] . "</td><td>" . $webhookData['createdDate'] . "</td>";
        echo "</tr>";
    }
    echo "</table>";
}
?>
=======
<?php 
/**
This Example shows how to get the list of existing Emails
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$contactList = $api->listGet($token, "", 1, 1, "", "");
$listID = $contactList[0]['id'];
$retval = $api->webhookGet($listID);
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Webhooks Returned:\n";
Exemplo n.º 19
0
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Total Contacts:" . $retval . "\n";
}
?>
=======
<?php 
/**
This Example shows how to Add the contact details to the given contact list.
Multiple contacts would be added if the details has more than one items.
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$details[0]["email"] = "tom@____.com";
$details[0]["firstname"] = "Tom";
$details[0]["lastname"] = "Jones";
$details[0]["extra 1"] = "Extra 1";
$details[0]["extra 3"] = "Extra 3";
$details[1]["email"] = "*****@*****.**";
$details[1]["firstname"] = "Jack";
$details[1]["lastname"] = "Sawyer";
$retval = $api->listAddContactsOptin($contactListID, $details, "1");
Exemplo n.º 20
0
        echo "<td>" . $reportData['sequence'] . "</td><td>" . $reportData['email'] . "</td>";
        echo "<td> " . $reportData['name'] . "</td><td> " . $reportData['logdate'] . "</td>";
        echo "</tr>";
    }
    echo "</table>";
}
?>
=======
<?php 
/**
Get the email addresses to which the given campaign was forwarded,using the paging limits, ordered by the email or date of the forwarded record.
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->reportGetForwards($emailID, 1, 100, "", "");
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Forwards Returned:\n";
    echo "<table border=1>";
    echo "<tr><td>  </td><td> Email </td><td> Name </td><td> Date </td></tr>";
Exemplo n.º 21
0
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo " Criteria Created:\n" . $retval;
}
?>
=======
<?php 
/**
Get the contacts from the contact list.
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->segmentGet("", 1, 1, "");
foreach ($retval as $listData) {
    $segmentID = $listData['id'];
}
$segmentCriteriaDetail["field"] = "Email";
$segmentCriteriaDetail["filtertype"] = "starts";
$segmentCriteriaDetail["filter"] = 'mar';
$segmentCriteriaDetail["startdate"] = '';
$segmentCriteriaDetail["enddate"] = '';
Exemplo n.º 22
0
        echo "<td>" . $reportData['sequence'] . "</td><td>" . $reportData['URL'] . "</td>";
        echo "<td> " . $reportData['clicks'] . "</td><td> " . $reportData['percent'] . "</td>";
        echo "</tr>";
    }
    echo "</table>";
}
?>
=======
<?php 
/**
Get the click URL stats for the given campaign.
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->reportGetClicks($emailID);
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Clicks Returned:\n";
    echo "<table border=1>";
    echo "<tr><td>  </td><td>URL </td><td> Clicks </td><td> Percent </td></tr>";
Exemplo n.º 23
0
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo " Tokens Added\n";
}
?>
=======
<?php 
/**
Fetch all tokens for the user.
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$newToken = "MY_DUMMY_TOKEN_1";
$retval = $api->tokenAdd($username, $password, $newToken);
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo " Tokens Added\n";
}
Exemplo n.º 24
0
            echo "<tr><td>" . $k . "</td><td>" . print_r($v) . "</td></tr>";
        }
    }
    echo "</table>";
}
?>
=======
<?php 
/**
This Example shows how to get details of an existing poll
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->pollGetList("", "", 1, 10, "", "");
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "<table>";
    foreach ($retval as $k => $v) {
        if (!is_array($v)) {
Exemplo n.º 25
0
    echo "</table>";
}
?>



=======
<?php 
/**
This Example shows how to get the list of existing Events
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->eventTemplateGetList("1", "", "");
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Events Returned:\n";
    echo "<table>";
    echo "<tr><td>ID</td><td>Name </td><td> image</td><td> css </td><td> categoryid </td><td> new </td><td> used </td><td> popular </td>";
Exemplo n.º 26
0
        echo "<td>" . $listData['email'] . "</td><td>" . $listData['firstname'] . "</td>";
        echo "<td>" . $listData['middlename'] . "</td><td>" . $listData['lastname'] . "</td>";
        echo "</tr>";
    }
    echo "</table>";
}
?>
=======
<?php 
/**
Get the contacts from the contact list.
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->listGetContacts($contactListID, "", 1, 5, "", "");
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo sizeof($retval) . " Contacts Returned:\n";
    echo "<table>";
    echo "<tr><td>  </td><td>List ID</td><td> Name </td><td> Count </td>";
Exemplo n.º 27
0
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Survey Question ID:" . $retval . "\n";
}
?>
=======
<?php 
/**
This Example shows how to create a new Survey Question
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$SurveyID = '473';
$QuestionID = '2311';
$retval = $api->surveyQuestionDelete($SurveyID, $QuestionID);
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Survey Question ID:" . $retval . "\n";
Exemplo n.º 28
0
            echo "<tr><td>" . $k . "</td><td>" . print_r($v) . "</td></tr>";
        }
    }
    echo "</table>";
}
?>
=======
<?php 
/**
This Example shows how to get details of an existing autoresponder
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->autoresponderGetDetail('3928');
if (!$retval) {
    echo "Error!";
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "<table>";
    foreach ($retval as $k => $v) {
        if (!is_array($v)) {
Exemplo n.º 29
0
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "Updated Survey ID:" . $retval . "\n";
}
?>
=======
<?php 
/**
This Example shows how to create a new Survey
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$retval = $api->surveyGetList("", "", 1, 10, "", "");
$SurveyID = $retval[0][id];
$surveyDetail['id'] = $SurveyID;
$surveyDetail['name'] = 'Sales Survey1';
$surveyDetail['url'] = 'www.benchmarkemail.com';
$surveyDetail['title'] = 'Shop Survey';
$surveyDetail['intro'] = 'Please take our quick, easy survey on the services we provide.';
$retval = $api->surveyUpdate($SurveyID, $surveyDetail);
if (!$retval) {
Exemplo n.º 30
0
    echo "\n\tCode=" . $api->errorCode;
    echo "\n\tMsg=" . $api->errorMessage . "\n";
} else {
    echo "New Email ID:" . $retval . "\n";
}
?>
=======
<?php 
/**
This Example shows how to update an existing Autoresponder
**/
require_once 'inc/BMEAPI.class.php';
require_once 'inc/config.php';
//contains username & password
//This hack actually skips the login and lets you choose the API Key to expire.
$api = new BMEAPI($username, $password, $apiURL);
if ($api->errorCode) {
    // an error occurred while logging in
    echo "code:" . $api->errorCode . "\n";
    echo "msg :" . $api->errorMessage . "\n";
    die;
}
$status = "1";
// 1 for making it active , 0 for deactivating it
$Autoresponder = array();
$Autoresponder["autoresponderName"] = "Autoresponder 1 update";
$Autoresponder["fromName"] = "Joe de maggio";
$Autoresponder["fromEmail"] = "*****@*****.**";
$Autoresponder["webpageVersion"] = false;
$Autoresponder["permissionReminder"] = true;
$Autoresponder["permissionReminderMessage"] = "Please click here to confirm, <a target=_new style='color:#0000ff;' href='CONFIRMURL'>Confirm my subscription</a> .";