Enables you to find out information about your account.
Implemented by AccountService class
EsendexLib::AccountService spAccountService; spAccountService.CreateInstance(uuidof(EsendexLib::AccountService));
Initialise the class with your Esendex credentials. You must call this method before you call any other on the interface.
Initialise(_bstr_t Username, _bstr_t Password, _bstr_t Account, _variant_t IsServerSide);
Parameters
Returns the remaining message limit on your account.
long GetMessageLimit();
Return Value: The number of messages remaining on your account.
Returns the features that are enabled on your account.
long GetAccountFeatures();
Return Value: The features enabled on your account. This can be a combination of: ACCOUNT_FEATURE_NONE, ACCOUNT_FEATURE_SERVICE_ALIASING and ACCOUNT_FEATURE_INBOX
Returns a state object that contains information about your account.
IAccountStatePtr GetAccountState();
Return Value: An object that contains information about your account, including the ID assigned by Esendex, the reference, address, service alias, messsage limit and features.
Enables you to retrieve, add, edit and delete contacts and contact groups.
Implemented by ContactService class
EsendexLib::ContactService spContactService;
spContactService.CreateInstance(uuidof(EsendexLib::ContactService));
Initialise the class with your Esendex credentials. You must call this method before you call any other on the interface.
Initialise(_bstr_t Username, _bstr_t Password, _bstr_t Account, _variant_t IsServerSide);
Parameters
Returns a list of contacts associated with your account.
IObjectCollectionPtr GetContacts();
Return Value: A collection containing the contacts associated with your account.
Returns a list of groups associated with your account.
IObjectCollectionPtr GetGroups ();
Return Value: A collection containing the groups associated with your account.
Adds a contact to your account.
_bstr_t AddContact(IContactPtr Contact);
Parameters
Return Value: The ID assigned to the contact by Esendex.
Adds multiple contacts to your account. IStringCollection2Ptr AddContact(IObjectCollectionPtr Contacts);
Parameters
Return Value: A collection containing the IDs assigned to the contacts by Esendex.
Adds a group to your account.
_bstr_t AddGroup(IGroupPtr Group, _bstr_t MemberIDs);
Parameters
Return Value: The ID assigned to the group by Esendex.
Deletes a contact from your account.
void DeleteContact(_bstr_t ContactID);
Parameters
Deletes multiple contacts from your account.
void DeleteContacts(_bstr_t ContactIDs);
Parameters
Deletes a group from your account.
void DeleteContact(_bstr_t GroupID, _variant_t IncludeMembers); Parameters
Updates one of your account’s contacts.
void UpdateContact(IContactPtr Contact);
Parameters
Updates one of your account’s groups.
void UpdateGroup(IGroupPtr Group, _bstr_t MemberIDs);
Parameters
Retrieves a contact from your account.
IContactPtr GetContact(_bstr_t ContactID);
Parameters
Return Value: The Contact.
Retrieves a group from your account.
IGroupPtr GetGroup (_bstr_t GroupID);
Parameters
Return Value: The Group.
Retrieves the contact members within a group.
IObjectCollectionPtr GetGroup (_bstr_t GroupID);
Parameters
Return Value: A collection containing the group’s members.
Retrieves a contact using it’s QuickName.
IContactPtr GetContact(_bstr_t QuickName);
Parameters
Return Value: The Contact.
Retrieves a group from your account.
IGroupPtr GetGroup (_bstr_t GroupName);
Parameters
Return Value: The Group.
The Messenger folder contains an MFC dialog application (EsendexMessenger.sln) that displays the contents of your Esendex inbox. You can delete messages from your inbox and send an SMS message.
Application flow is as follows: