« Back to Documentation Overview

campaignUnsubscribes – v1.3

 campaignUnsubscribes(string apikey, string cid, int start, int limit)

Get all unsubscribed email addresses for a given campaign

Section
Campaign Stats
Parameters
apikey a valid API Key for your user account. Get by visiting your API dashboard
cid the campaign id to pull bounces for (can be gathered using campaigns())
start optional - for large data sets, the page number to start at - defaults to 1st page of data (page 0)
limit optional - for large data sets, the number of results to return - defaults to 1000, upper limit set at 15000
Returns
array a total of all unsubscribed emails and the specific emails for this page
inttotal the total number of unsubscribes for the campaign
arraydata the full email addresses that unsubscribed
stringemailthe email address that unsubscribed
stringreasonFor unsubscribes only - the reason collected for the unsubscribe. If populated, one of 'NORMAL','NOSIGNUP','INAPPROPRIATE','SPAM','OTHER'
stringreason_textFor unsubscribes only - if the reason is OTHER, the text entered.