logo   HOME

Email Groups

This page lists the optional parameters, request data and reponse in xml

Retrieve all contacts for a specific group [HTTP GET]

https://appapi.dlangemobile.com/xml/emailgroups/{api_key}/{group_id}/contacts

URL Parameters

  • api_key (Required) - Your API application key.
  • group_id (Required) - ID of group to get contacts.

Response Notes

Returns a list of all contacts assigned to the group including the contact ID.

Example XML Response

<EmailContacts>
  <EmailContact>
    <ID>1</ID>
    <EmailAddress>contact@domain.com</EmailAddress>
    <FirstName>Test</FirstName>
    <LastName>Contact 1</LastName>
    <OptedOut>false</OptedOut>
  </EmailContact>
  <EmailContact>
    <ID>2</ID>
    <EmailAddress>contact2@domain.com</EmailAddress>
    <FirstName>Test</FirstName>
    <LastName>Contact 2</LastName>
    <OptedOut>false</OptedOut>
  </EmailContact>
</EmailContacts>

Error Codes

  • 001 - API key is required.
  • 002 - Invalid API key.
  • 101 - Define a valid Contact ID.
  • 102 - Invalid Contact ID format. Contact ID should be an integer.
  • 103 - Contact not found. Please provide a valid Contact ID.