Returns the members that meet the given conditions.
Admin SDKAdmin.api('site.newsletter-members.find', request, function(response) { … });
HTTP POST/api/v10/site.newsletter-members.find
{
"conditions" : { // returns the members …
"list" : 5, // … of this newsletter list (id) - int(1…)
"email" : "info@acme.com", // … with this email - string(3…100)
"domain" : "acme.com", // … with this domain name - string(1…98)
"ip" : "172.16.254.1" // … with this IP address - string(7…15)
},
"fields" : [ "list", "email", … ], // fields to return - string
"order" : [ "name" ], // sort order of returned newsletter members, can contain "list", "-list", "email", "-email", "ip", "-ip",
// "creationTime" and "-creationTime" - string
"limit" : 10, // maximum number of newsletter members to return - int(1…)
"first" : 30 // index of the first newsletter member to return - int(0…)
}
{
"status" : "ok",
"members" : [ {
"list" : 5, // newsletter list (id) - int(1…)
"email" : "info@acme.com", // email address - string(3…100)
"ip" : "172.16.254.1", // IP address (can be null) - string(7…15)
"creationTime" : "2020-09-14 09:29:12" // creation time - datetime
}, … ]
}
Number of members that meet the given conditions.
Admin SDKAdmin.api('site.newsletter-members.count', request, function(response) { … });
HTTP POST/api/v10/site.newsletter-members.count
{
"conditions" : { // counts the members …
"list" : 5, // … of this newsletter list (id) - int(1…)
"email" : "info@acme.com", // … with this email - string(3…100)
"domain" : "acme.com", // … with this domain name - string(1…98)
"ip" : "172.16.254.1" // … with this IP address - string(7…15)
}
}
{
"status" : "ok",
"count" : 349056 // number of members - int(0…)
}
Field | Type | Description |
---|---|---|
InvalidValue | '<email> ' is not a well formed email address |
Creates one o more members in one or more lists.
Admin SDKAdmin.api('site.newsletter-members.create', request, function(response) { … });
HTTP POST/api/v10/site.newsletter-members.create
{
"members" : [ { // members to create (required)
"email" : "info@acme.com", // email address (required) - string(3…100)
"ip" : "172.16.254.1" // IP address (can be null) - string(7…15)
}, … ],
"lists" : [ 5, 9, … ] // newsletter lists (id) in which to create the members (required) - int(1…)
}
{
"status" : "ok"
}
Field | Type | Description |
---|---|---|
InvalidValue | '<email> ' is not a well formed email address |
|
lists | NotFound | Newsletter list <list> does not exist |
Deletes one o more members from one or more lists.
Admin SDKAdmin.api('site.newsletter-members.delete', request, function(response) { … });
HTTP POST/api/v10/site.newsletter-members.delete
{
"emails" : [ "info@acme.com", … ], // emails of the members to delete (required) - string(3…100)
"lists" : [ 5, 9, … ] // newsletter lists (id) from which to delete the members (required) - int(1…)
}
{
"status" : "ok"
}
Field | Type | Description |
---|---|---|
emails | InvalidValue | '<email> ' is not a well formed email address |
lists | NotFound | Newsletter list <list> does not exist |