Commit from m3o/m3o action

This commit is contained in:
m3o-actions
2022-01-26 13:06:45 +00:00
parent 9cd82a849f
commit 9547c26947
25 changed files with 1314 additions and 1186 deletions

View File

@@ -0,0 +1,17 @@
package main
import (
"fmt"
"os"
"go.m3o.com/email"
)
// Parse an RFC5322 address e.g "Joe Blogs <joe@example.com>"
func main() {
emailService := email.NewEmailService(os.Getenv("M3O_API_TOKEN"))
rsp, err := emailService.Parse(&email.ParseRequest{
Address: "Joe Blogs <joe@example.com>",
})
fmt.Println(rsp, err)
}