0

I want to look at a longitudinal summary of a single campaign, CampaignA.

I want to do something like:

curl -s --user "api:0123456789" -G https://api.mailgun.net/v2/example.mailgun.org/campaigns/CampaignA/events?groupby=day&event='sent'

but this is not supported in the API.

Does anyone know of an alternative way to get this information?

Ellis Valentiner
  • 2,136
  • 3
  • 25
  • 36

2 Answers2

2

If you attach a tag to your campaign when you send it you can then retrieve all campaigns with that tag. So per each daya you can have a different campaign tag and then filter these on the sent event or maybe delivered event. Have a look here: http://documentation.mailgun.com/api-events.html#filter-event

API_sheriff_orlie
  • 1,223
  • 10
  • 18
0

Why do you say that is not supported?

See here: https://documentation.mailgun.com/api-campaigns.html#events

Jose Ayram
  • 198
  • 1
  • 14