The parameters for the EsendexContactService constructor include optional arguments for a security certificate:
EsendexContactService( $username, $password, $account, $isSecure = false, $certificate = '' )
To send via HTTPS, use the following arguements:
$isSecure = true
$certificate = "PATH TO CERTIFICATE FILE" ( e.g. C:\Windows\curl_ca_bundle.crt )
To send via HTTP these arguments can be ignored.
For a successful request, results are in the format:
Result=OK ContactID=valuewhere ContactID value is the ID that Esendex assigned to the contact.
For an unsuccessful request, results are in the format:
Result=Error Message=value where Message value is a URL encoded description of the error.
For a successful request, results are in the format:
Result=OK Messages=valuewhere Message value is an array containing contact arrays in the format: [ID] - ID that Esendex assigned to the contact For an unsuccessful request, results are in the format:
[QuickName] - reference that can be used as a recipient
[FirstName]
[LastName]
[TelephoneNumber]
[MobileNumber]
[StreetAddress1]
[StreetAddress2]
[Town]
[County]
[Postcode]
[Country] [EmailAddress]
[ContactType] - type of contact (e.g. Contact) Result=Error Message=value where Message value is a URL encoded description of the error.
For a successful request, results are in the format:
Result=OK GroupID=valuewhere GroupID value is the ID that Esendex assigned to the group.
For an unsuccessful request, results are in the format:
Result=Error Message=value where Message value is a URL encoded description of the error.
For a successful request, results are in the format:
Result=OK Messages=valuewhere Message value is an array containing group arrays in the format: [ID] - ID that Esendex assigned to the groupFor an unsuccessful request, results are in the format:
[Name]
[Description]
[GroupType] - type of group (e.g. Group) Result=Error Message=value where Message value is a URL encoded description of the error.
For a successful request, results are in the format:
Result=OK Messages=valuewhere Message value is an array containing contact arrays in the format: [ID] - ID that Esendex assigned to the contact For an unsuccessful request, results are in the format:
[QuickName] - reference that can be used as a recipient
[FirstName]
[LastName]
[TelephoneNumber]
[MobileNumber]
[StreetAddress1]
[StreetAddress2]
[Town]
[County]
[Postcode]
[Country] [EmailAddress]
[ContactType] - type of contact (e.g. Contact) Result=Error Message=value where Message value is a URL encoded description of the error.
For a successful request, results are in the format:
Result=OK For an unsuccessful request, results are in the format: Result=Error Message=value where Message value is a URL encoded description of the error.