Mailosaur Go Client Library
Mailosaur allows you to automate tests involving email. Allowing you to perform end-to-end automated and functional email testing.
Installation
go get -u github.com/jslang/mailosaur-go
Usage
import mailosaur
c := mailosaur.NewClient("<yourapikey>", "<yourserverid>")
msgs, err := c.ListMessages()
...
msg, err := c.GetMessage(msgs[0].Id)
...
err = c.DeleteMessage(msg.Id)
...
err = c.DeleteMessages()
...
Tests
Unit tests
go test ./mailosaur
Integration tests, requires a valid mailosaur api key and server id to work:
MAILOSAUR_API_KEY=<apikey> MAILOSAUR_SERVER_ID=<serverid> go test ./test/integration_test.go
API Completion Status
Completed:
* Messages API
TODO:
* Files API
* Servers API
* Analysis API
On this page
Languages
Go100.0%
Contributors
Latest Release
v0.0.1-alphaOctober 21, 2019The Unlicense
Created October 12, 2019
Updated February 10, 2022