function EsendexContactService($username, $password, $accountReference, $isSecure = false, $certificate = "") { parent::EsendexFormPostUtilities($isSecure, $certificate); $this->username = $username; $this->password = $password; $this->accountReference = $accountReference; if ($isSecure) { define("ADD_CONTACT_URL", "https://www.esendex.com/secure/messenger/formpost/AddContact.aspx"); define("GET_CONTACT_URL", "https://www.esendex.com/secure/messenger/formpost/GetContact.aspx"); define("UPDATE_CONTACT_URL", "https://www.esendex.com/secure/messenger/formpost/UpdateContact.aspx"); define("DELETE_CONTACT_URL", "https://www.esendex.com/secure/messenger/formpost/DeleteContact.aspx"); define("ADD_GROUP_URL", "https://www.esendex.com/secure/messenger/formpost/AddContactGroup.aspx"); define("GET_GROUP_URL", "https://www.esendex.com/secure/messenger/formpost/GetContactGroup.aspx"); define("GET_GROUP_MEMBERS_URL", "https://www.esendex.com/secure/messenger/formpost/GetContactGroupMembers.aspx"); define("UPDATE_GROUP_URL", "https://www.esendex.com/secure/messenger/formpost/UpdateContactGroup.aspx"); define("DELETE_GROUP_URL", "https://www.esendex.com/secure/messenger/formpost/DeleteContactGroup.aspx"); } else { define("ADD_CONTACT_URL", "http://www.esendex.com/secure/messenger/formpost/AddContact.aspx"); define("GET_CONTACT_URL", "http://www.esendex.com/secure/messenger/formpost/GetContact.aspx"); define("UPDATE_CONTACT_URL", "http://www.esendex.com/secure/messenger/formpost/UpdateContact.aspx"); define("DELETE_CONTACT_URL", "http://www.esendex.com/secure/messenger/formpost/DeleteContact.aspx"); define("ADD_GROUP_URL", "http://www.esendex.com/secure/messenger/formpost/AddContactGroup.aspx"); define("GET_GROUP_URL", "http://www.esendex.com/secure/messenger/formpost/GetContactGroup.aspx"); define("GET_GROUP_MEMBERS_URL", "http://www.esendex.com/secure/messenger/formpost/GetContactGroupMembers.aspx"); define("UPDATE_GROUP_URL", "http://www.esendex.com/secure/messenger/formpost/UpdateContactGroup.aspx"); define("DELETE_GROUP_URL", "http://www.esendex.com/secure/messenger/formpost/DeleteContactGroup.aspx"); } }
function EsendexSendContentService($username, $password, $accountReference, $isSecure = false, $certificate = '') { parent::EsendexFormPostUtilities($isSecure, $certificate); $this->username = $username; $this->password = $password; $this->accountReference = $accountReference; if ($isSecure) { define("SEND_WAP_PUSH_SMS_URL", "https://www.esendex.com/secure/messenger/formpost/SendWAPPushSMS.aspx"); } else { define("SEND_WAP_PUSH_SMS_URL", "http://www.esendex.com/secure/messenger/formpost/SendWAPPushSMS.aspx"); } }
function EsendexSubscriptionService($username, $password, $accountReference, $isSecure = false, $certificate = '') { parent::EsendexFormPostUtilities($isSecure, $certificate); $this->username = $username; $this->password = $password; $this->accountReference = $accountReference; if ($isSecure) { define("STOP_SUBSCRIPTION_URL", "https://www.esendex.com/secure/messenger/formpost/StopSubscription.aspx"); } else { define("STOP_SUBSCRIPTION_URL", "http://www.esendex.com/secure/messenger/formpost/StopSubscription.aspx"); } }
function EsendexSendService($username, $password, $accountReference, $isSecure = false, $certificate = "") { parent::EsendexFormPostUtilities($isSecure, $certificate); $this->username = $username; $this->password = $password; $this->accountReference = $accountReference; if ($isSecure) { define("SEND_SMS_URL", "https://www.esendex.com/secure/messenger/formpost/SendSMS.aspx"); define("SMS_STATUS_URL", "https://www.esendex.com/secure/messenger/formpost/QueryStatus.aspx"); } else { define("SEND_SMS_URL", "http://www.esendex.com/secure/messenger/formpost/SendSMS.aspx"); define("SMS_STATUS_URL", "http://www.esendex.com/secure/messenger/formpost/QueryStatus.aspx"); } }
function EsendexInboxService($username, $password, $accountReference, $isSecure = false, $certificate = "") { parent::EsendexFormPostUtilities($isSecure, $certificate); $this->username = $username; $this->password = $password; $this->accountReference = $accountReference; if ($isSecure) { define("GET_MESSAGES_URL", "https://www.esendex.com/secure/messenger/formpost/GetInboxMessage.aspx"); define("GET_LATEST_MESSAGES_URL", "https://www.esendex.com/secure/messenger/formpost/GetLatestInboxMessages.aspx"); define("DELETE_MESSAGE_URL", "https://www.esendex.com/secure/messenger/formpost/DeleteInboxMessage.aspx"); } else { define("GET_MESSAGES_URL", "http://www.esendex.com/secure/messenger/formpost/GetInboxMessage.aspx"); define("GET_LATEST_MESSAGES_URL", "http://www.esendex.com/secure/messenger/formpost/GetLatestInboxMessages.aspx"); define("DELETE_MESSAGE_URL", "http://www.esendex.com/secure/messenger/formpost/DeleteInboxMessage.aspx"); } }
function __construct($isSecure = false, $certificate = "") { parent::EsendexFormPostUtilities($isSecure, $certificate); //get the CI super object $this->ci =& get_instance(); $this->ci->load->config('esendex'); $this->username = $this->ci->config->item('esendex_username'); $this->password = $this->ci->config->item('esendex_password'); $this->accountReference = $this->ci->config->item('esendex_account_reference'); if ($isSecure) { define("SEND_SMS_URL", "https://www.esendex.com/secure/messenger/formpost/SendSMS.aspx"); define("SMS_STATUS_URL", "https://www.esendex.com/secure/messenger/formpost/QueryStatus.aspx"); } else { define("SEND_SMS_URL", "http://www.esendex.com/secure/messenger/formpost/SendSMS.aspx"); define("SMS_STATUS_URL", "http://www.esendex.com/secure/messenger/formpost/QueryStatus.aspx"); } }