Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
api-mailinglists [2017/02/03 14:51]
ben [Endpoint]
api-mailinglists [2017/05/04 09:03]
ben [Get All Mailing Subscribers]
Line 53: Line 53:
  "​Description":​ "For contacts who receive our standard offers emails."​  "​Description":​ "For contacts who receive our standard offers emails."​
  }  }
 +]
 +</​code>​|
 +
 +
 +===== Get All Mailing List Subscribers =====
 +
 +This Endpoint is used to get all the Contacts that are currently Subscribed to a particular Mailing List and are Emailable (so those that are Unsubscribed or marked as having a Bad Email Address are excluded).
 +
 +You can find the [[/​mailing-lists|Mailing List]] External IDs on the [[/​mailing-lists|Mailing List]] page in Sentori or by calling the Get All Mailing Lists API Endpoint.
 +
 +==== Endpoint ====
 +|URI| <​nowiki>​https://​api.sentoriapp.com/​v2.0/​mailinglists/​subscribers/​{MailingListExternalID}</​nowiki>​|
 +|Method| GET |
 +
 +==== Response ====
 +
 +|Field| Type|Description |
 +|SystemID|integer| The SystemID of a Contact.|
 +|EmailAddress|string| The email address of a Contact.|
 +
 +|Example|<​code javascript>​
 +[
 + {
 + "​SystemID":​ "​100",​
 + "​EmailAddress":​ "​contact1@example.com"​
 + },
 + {
 + "​SystemID":​ "​104",​
 + "​EmailAddress":​ "​contact4@example.com"​
 + },
 ] ]
 </​code>​| </​code>​|