Implements the mailtrain API.
If you already installed GO on your system and configured it properly than its simply:
go get github.com/virtomize/mailtrain-go-api
If not follow these instructions.
api, err := gomailtrain.NewAPI("https://mailtrain.example.com", "token")
if err != nil {
// handle error
}
// read all subscribed lists for an email
lists, err := api.GetListsByEmail("[email protected]")
if err != nil {
// handle error
}
see examples for some more usage examples
You find the full code documentation here.
Thank you for participating to this project. Please see our Contribution Guidlines for more information.