Repository navigation
https://luarocks.org/modules/leafo/mailgun
What's Changed
- Add
regionoption to client creation, set to"eu"for accounts in Mailgun's EU region- Add
api_prefixoption to override the API base URL
- Add
- Add
templateandtemplate_varsoptions tosend_emailfor sending with templates stored in Mailgun - Add methods
get_logs(params)andeach_log(params)for Mailgun's Logs API, the replacement for the Events API - Failed requests now return the HTTP status code as a third return value
for_domainkeeps thewebhook_signing_keyand API prefix of the original client- Escape the address in
get_bounce,get_unsubscribe,get_complaint - Deprecate
get_eventsandeach_event, Mailgun has deprecated the Events API in favor of Logs - Deprecate campaigns:
create_campaign,get_campaigns,get_or_create_campaign_idand thecampaignoption tosend_email. Usetagsinstead
Full Changelog: v1.2.0...v1.3.0