REST Email Marketing API DocumentationMAILINGS — REPORTProvide data about open, clicks, complaints, or deliverability for a specific mailing. HTTP VERBGet URL/API/Rest/Mailings/Report ARGUMENTS
mailingTitle Required permissionStandardReports ERRORS
No Permission RETURNSDetails for the mailing. Each of the reports returns the email address, name field, and the date of the activity. Each of the repots varies slightly. The Deliverability report has the status of the send attempt. The Clicks report includes the URL and the alias for the URL, if specified. Clicks Email Address Name URL Timestamp URL alias
{"downloadGuid":"d2746c93-1e91-4e7f-b417-71586f6969ba","totalRows":7,
Opens Email address Name Timestamp
{"downloadGuid":"7a397d2b-9a9f-4ae1-a4d3-cf44cffd5b8f","totalRows":6,
Deliverability Email address Name Status Timestamp
{"downloadGuid":"5bad0a0e-afa0-40ed-9a71-f78dba8a9a11","totalRows":7,
Complaints Email address Name Timestamp
{"downloadGuid":"a7323990-2277-4e54-9026-3af3f144fc49","totalRows":2,
EXAMPLE |
string url = "http://example.com/api/rest/Mailings/Report?accountName=acme&login=ApiUser&mailingTitle=Test1&reportType=Clicks"; try { System.Net.HttpWebRequest request = (HttpWebRequest)WebRequest.Create(url); request.Headers.Add("Password", "34teh6i6j565ydw4h"); using (System.Net.WebResponse response = request.GetResponse()) using (Stream responseStream = response.GetResponseStream()) using (StreamReader reader = new StreamReader(responseStream, Encoding.UTF8)) System.Console.WriteLine(reader.ReadToEnd()); } catch (System.Net.WebException ex) { System.Diagnostics.Debug.Fail(ex.Message); }
# encoding: utf-8 require 'rest-client' require 'json' url = 'http://example.com/api/rest/Mailings/Report/?accountName=acme&login=ApiUser&mailingTitle=Test1&reportType=Clicks' response = RestClient.get(url, "", {:Password => "sfhdf6df5fdy"}) puts response
import requests url = "http://www.example.com/api/rest/Mailings/Report/?accountName=acme&login=ApiUser&mailingTitle=Test1&reportType=Clicks"; headers = {'password':'sfhdf6df5fdy'} resp = requests.get(url, headers=headers) if resp.status_code == 200: print resp.text
http://example.com/api/rest/Mailings/Report/?accountName=acme &login=ApiUser &password=sdff34fg34s &mailingTitle=Test1 &reportType=Clicks