Get the most recent 100 activities for particular list members (open, click, bounce, unsub, abuse, sent to)
Signature
public function listMemberActivity(string
$id,
array
$email_address )
Parameters
$id
—
string
the list id to connect to. Get by calling lists()
$email_address
—
array
an array of up to 50 email addresses to get information for OR the "id"(s) for the member returned from listMembers, Webhooks, and Campaigns.
Returns
array
array of data and success/error counts int success the number of subscribers successfully found on the list
int errors the number of subscribers who were not found on the list
array data an array of arrays where each activity record has:
string action The action name, one of: open, click, bounce, unsub, abuse, sent, queued, ecomm, mandrill_send, mandrill_hard_bounce, mandrill_soft_bounce, mandrill_open, mandrill_click, mandrill_spam, mandrill_unsub, mandrill_reject
string timestamp The date/time of the action
string url For click actions, the url clicked, otherwise this is empty
string type If there's extra bounce, unsub, etc data it will show up here.
string bounce_type For backwards compat, this will exist and be the same data as "type"
string campaign_id The campaign id the action was related to, if it exists - otherwise empty (ie, direct unsub from list)