Package Usage: go: github.com/mailgun/mailgun-go/v4
Package mailgun provides methods for interacting with the Mailgun API. It
automates the HTTP request/response cycle, encodings, and other details
needed by the API. This SDK lets you do everything the API lets you, in a
more Go-friendly way.
For further information please see the Mailgun documentation at
http://documentation.mailgun.com/
All functions and method have a corresponding test, so if you don't find an
example for a function you'd like to know more about, please check for a
corresponding test. Of course, contributions to the documentation are always
welcome as well. Feel free to submit a pull request or open a Github issue
if you cannot find an example to suit your needs.
Most methods that begin with `List` return an iterator which simplfies
paging through large result sets returned by the mailgun API. Most `List`
methods allow you to specify a `Limit` parameter which as you'd expect,
limits the number of items returned per page. Note that, at present,
Mailgun imposes its own cap of 100 items per page, for all API endpoints.
For example, the following iterates over all pages of events 100 items at a time
Copyright (c) 2013-2019, Michael Banzon.
All rights reserved.
Redistribution and use in source and binary forms, with or without modification,
are permitted provided that the following conditions are met:
* Redistributions of source code must retain the above copyright notice, this
list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this
list of conditions and the following disclaimer in the documentation and/or
other materials provided with the distribution.
* Neither the names of Mailgun, Michael Banzon, nor the names of their
contributors may be used to endorse or promote products derived from
this software without specific prior written permission.
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
43 versions
Latest release: over 1 year ago
221 dependent packages
View more package details: https://packages.ecosystem.code.gouv.fr/registries/proxy.golang.org/packages/github.com/mailgun/mailgun-go/v4