Implements the mailtrain API.
!!! less tested !!!
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("mail@example.com")
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.