<?php
####################################################################
###### Project Name: EmailDirect Web Service API #######
###### Develop :prabal pratap singh #######
###### Date : 20/07/2009 #######
###### #######
###### #######
####################################################################
// class elitemail is used for php function for elitemail API web service use
require_once("emailDirectclass.php");
$emaildirect = new emaildirect(); // make a object of emaildirect class
//for example we use Email_Add Function with Successfully running //
/*
$Email_Add= $emaildirect->Email_Add('suresh', 'suresh123', 'suresh@rcn.com', '40', '2', '113', '1', 'addition');
print "<b>Email_Add</b>";
echo "<br />";
echo "***************************************************";
echo "<br />";
echo "Message : ";
print_r($Email_Add);
echo "<br />";
print "***************************************************";
echo "<p>";
*/
///
// Start function for Email_Add
$Email_Add= $emaildirect->Email_Add('username', 'password', 'email', '40', '2', '113', '1', 'addition');
print "<b>Email_Add</b>";
echo "<br />";
echo "***************************************************";
echo "<br />";
echo "Message : ";
print_r($Email_Add);
echo "<br />";
print "***************************************************";
echo "<p>";
// End function for Email_Add
// Start function for Email_AddWithFields
$Email_AddWithFields= $emaildirect->Email_AddWithFields('username', 'password', 'email', '40', '2', '113', '1', 'addition','pspl','piltd');
print "<b>Email_AddWithFields</b>";
echo "<br />";
echo "***************************************************";
echo "<br />";
echo "Message : ";
print_r($Email_AddWithFields);
echo "<br />";
print "***************************************************";
echo "<p>";
// End function for Email_AddWithFields
// Start function for Email_Remove
$Email_Remov= $emaildirect->Email_Remov('username', 'password', 'singh.prabal@gmail.com', '13', false);
print "<b>Email_Remove</b>";
echo "<br />";
echo "***************************************************";
echo "<br />";
echo "Message : ";
print_r($Email_Remov);
echo "<br />";
print "***************************************************";
echo "<p>";
// End function for Email_Remove
// Start function for Account_GetHardBounces
$Account_GetHardBounces= $emaildirect->Account_GetHardBounces('username', 'password', 'email', '2002-07-29', '2009-05-25', '200', '5');
print "<b>Account_GetHardBounces</b>";
echo "<br />";
echo "***************************************************";
echo "<br />";
echo "TotalCount : ";
print_r($Account_GetHardBounces);
echo "<br />";
print "***************************************************";
echo "<p>";
// Stop function for Account_GetHardBounces
// Start function for Publication_GetUnsubscribes
$Publication_GetUnsubscribes= $emaildirect->Publication_GetUnsubscribes('username', 'password', '13', '2002-07-29', '2009-05-25', '4', '4');
print "<b>Publication_GetUnsubscribes</b>";
echo "<br />";
echo "***************************************************";
echo "<br />";
echo "TotalCount : ";
print_r($Publication_GetUnsubscribes);
echo "<br />";
print "***************************************************";
echo "<p>";
// Stop function for Publication_GetUnsubscribes
// Start function for Creative_GetFolders
$Creative_GetFolders= $emaildirect->Creative_GetFolders('username', 'password');
print "<b>Creative_GetFolders</b>";
echo "<br />";
echo "***************************************************";
echo "<br />";
echo "FolderID : ";
$FolderID = $Creative_GetFolders->FolderID;
print($FolderID);
echo "<br />";
echo "FolderName : ";
$FolderName = $Creative_GetFolders->FolderName;
print($FolderName);
echo "<br />";
echo "ChildFolders : ";
echo "<br />";
$ChildFolders = $Creative_GetFolders->ChildFolders;
foreach($ChildFolders as $ChildFolder )
{
echo "FolderID : ";
$FolderID = $ChildFolder->FolderID;
print_r($FolderID);
echo "<br />";
echo "FolderName : ";
$FolderName = $ChildFolder->FolderName;
print_r($FolderName);
echo "<br />";
}
echo "<br />";
print "***************************************************";
echo "<p>";
// Stop function for Creative_GetFolders
// START function for RelaySend_SendEmail
$RelaySend_SendEmail= $emaildirect->RelaySend_SendEmail('username', 'password', '1', 'email', 'prabal', 'email', 'username', '19', 'false', 'true', '40', 'addition');
print "<b>RelaySend_SendEmail</b>";
echo "<br />";
echo "***************************************************";
echo "<br />";
foreach ($RelaySend_SendEmail as $RelaySend_SendEmails)
{
echo "Email : ";
$Email= $RelaySend_SendEmails->Email;
print_r($Email);
echo "<br />";
echo "RealySendReceipt : ";
$RealySendReceipt= $RelaySend_SendEmails->RealySendReceipt;
print_r($RealySendReceipt);
echo "<br />";
echo "ResultStatus : ";
$ResultStatus= $RelaySend_SendEmails->ResultStatus;
print_r($ResultStatus);
echo "<br />";
}
echo "<br />";
print "***************************************************";
echo "<p>";
// Stop function for RelaySend_SendEmail
// Start function for Campaign_GetSummary
$Campaign_GetSummary= $emaildirect->Campaign_GetSummary('username', 'password', 20);
print "<b>Campaign_GetSummary</b>";
echo "<br />";
echo "***************************************************";
echo "<br />";
echo "CampaignID : ";
$CampaignID= $Campaign_GetSummary->CampaignID;
print_r($CampaignID);
echo "<br />";
echo "DateSent : ";
$DateSent= $Campaign_GetSummary->DateSent;
print_r($DateSent);
echo "<br />";
echo "SentTo : ";
$SentTo= $Campaign_GetSummary->SentTo;
print_r($SentTo);
echo "<br />";
echo "FromName : ";
$FromName= $Campaign_GetSummary->FromName;
print_r($FromName);
echo "<br />";
echo "FromEmail : ";
$FromEmail= $Campaign_GetSummary->FromEmail;
print_r($FromEmail);
echo "<br />";
echo "Subject : ";
$Subject= $Campaign_GetSummary->Subject;
print_r($Subject);
echo "<br />";
echo "ToName : ";
$ToName= $Campaign_GetSummary->ToName;
print_r($ToName);
echo "<br />";
echo "CampaignName : ";
$CampaignName= $Campaign_GetSummary->CampaignName;
print_r($CampaignName);
echo "<br />";
echo "PublicationName : ";
$PublicationName= $Campaign_GetSummary->PublicationName;
print_r($PublicationName);
echo "<br />";
echo "PublicationID : ";
$PublicationID= $Campaign_GetSummary->PublicationID;
print_r($PublicationID);
echo "<br />";
echo "Status : ";
$Status= $Campaign_GetSummary->Status;
print_r($Status);
echo "<br />";
echo "CreativeID : ";
$CreativeID= $Campaign_GetSummary->CreativeID;
print_r($CreativeID);
echo "<br />";
echo "EmailsSent : ";
$EmailsSent= $Campaign_GetSummary->EmailsSent;
print_r($EmailsSent);
echo "<br />";
echo "Delivered : ";
$Delivered= $Campaign_GetSummary->Delivered;
print_r($Delivered);
echo "<br />";
echo "DeliveryRate : ";
$DeliveryRate= $Campaign_GetSummary->DeliveryRate;
print_r($DeliveryRate);
echo "<br />";
echo "Impressions : ";
$Impressions= $Campaign_GetSummary->Impressions;
print_r($Impressions);
echo "<br />";
echo "OpenRate : ";
$OpenRate= $Campaign_GetSummary->OpenRate;
print_r($OpenRate);
echo "<br />";
echo "UniqueClicks : ";
$UniqueClicks= $Campaign_GetSummary->UniqueClicks;
print_r($UniqueClicks);
echo "<br />";
echo "CTR : ";
$CTR= $Campaign_GetSummary->CTR;
print_r($CTR);
echo "<br />";
echo "TotalClicks : ";
$TotalClicks= $Campaign_GetSummary->TotalClicks;
print_r($TotalClicks);
echo "<br />";
echo "Unsubscribes : ";
$Unsubscribes= $Campaign_GetSummary->Unsubscribes;
print_r($Unsubscribes);
echo "<br />";
echo "RemoveRate : ";
$RemoveRate= $Campaign_GetSummary->RemoveRate;
print_r($RemoveRate);
echo "<br />";
echo "HardBounces : ";
$HardBounces= $Campaign_GetSummary->HardBounces;
print_r($HardBounces);
echo "<br />";
echo "BounceRate : ";
$BounceRate= $Campaign_GetSummary->BounceRate;
print_r($BounceRate);
echo "<br />";
echo "SoftBounces : ";
$SoftBounces= $Campaign_GetSummary->SoftBounces;
print_r($SoftBounces);
echo "<br />";
echo "Forwards : ";
$Forwards= $Campaign_GetSummary->Forwards;
print_r($Forwards);
echo "<br />";
echo "Complaints : ";
$Complaints= $Campaign_GetSummary->Complaints;
print_r($Complaints);
echo "<br />";
echo "ComplaintRate : ";
$ComplaintRate= $Campaign_GetSummary->ComplaintRate;
print_r($ComplaintRate);
echo "<br />";
print "***************************************************";
echo "<p>";
// Stop function for Campaign_GetSummary
?>
|