Release v3.0.0
NOTE: This release introduces go module support and requires the latests golang version to support versioned import paths.
List of added methods
- Added
AddDomainIP()
- Added
ListDomainIPS()
- Added
DeleteDomainIP()
- Added
ListIPS()
- Added
GetIP()
- Added
GetDomainTracking()
- Added
GetDomainConnection()
- Added
UpdateDomainConnection()
- Added
CreateExport()
- Added
ListExports()
- Added
GetExports()
- Added
GetExportLink()
- Added
CreateTemplate()
- Added
GetTemplate()
- Added
UpdateTemplate()
- Added
DeleteTemplate()
- Added
ListTemplates()
- Added
AddTemplateVersion()
- Added
GetTemplateVersion()
- Added
UpdateTemplateVersion()
- Added
DeleteTemplateVersion()
- Added
ListTemplateVersions()
List of improvements
- Added a
mailgun.MockServer
which duplicates part of the mailgun API; suitable for testing ListMailingLists()
now uses the/pages
API and returns an iteratorListMembers()
now uses the/pages
API and returns an iterator- Renamed public interface methods to be consistent. IE:
GetThing(), ListThing(), CreateThing()
- Moved event objects into the
mailgun/events
package, so names likeMailingList
returned by API calls andMailingList
as an event object don't conflict and confuse users. - Now using context.Context for all network operations
- Test suite will run without MG_ env vars defined
- ListRoutes() now uses the iterator interface
- Added SkipNetworkTest()
- Removed ginkgo and gomega tests
- Removed GetStats() As the /stats endpoint is depreciated
- Renamed GetStatsTotals() to GetStats()
- Renamed GetUnsubscribes to ListUnsubscribes()
- Renamed Unsubscribe() to CreateUnsubscribe()
- Renamed RemoveUnsubscribe() to DeleteUnsubscribe()
- GetStats() now takes an
*opt
argument to pass optional parameters - Modified GetUnsubscribe() to follow the API
- Now using golang modules
- Removed deprecated methods NewMessage and NewMIMEMessage
- ListCredentials() now returns an iterator
- ListUnsubscribes() now returns an paging iterator
- CreateDomain now accepts CreateDomainOption{}
- CreateDomain() now supports all optional parameters not just spam_action and wildcard.
- ListComplaints() now returns a page iterator
- Renamed
TagItem
toTag
- ListBounces() now returns a page iterator
- API responses with CreatedAt fields are now unmarshalled into RFC2822
- Removed GetCode() from
Bounce
struct. Verified API returns 'string' and not 'int' - DomainList() now returns an iterator
- Updated godoc documentation
- Removed more deprecated types
- Renamed ApiBase to APIBase
- Removed gobuffalo/envy dependency
- Updated copyright to 2019
- Removed mailgun cli from project
- Remove mention of the CLI in the README
- Fix #142 - Allow only CC or BCC recipients
- Fix #138 - Send() now warns if domain or api key is not provided
- Fix #113 - Send() now responds with a useful error if the server closed connection prematurely
- Fix #112 - Now unquote variables added to the message before send
ListEvents()
now returns a list of typed events