Yapdd
Yapdd is a golang package that provides a client implementation of Yandex.Mail for Domain API.
Work still in progress.
API supports
- Managing DNS
- Managing DKIM
- Managing domain mailboxes
- Managing domain mailing lists
- Domain management
- Importing email
- Managing domain administrator proxies
Example
cli := yapdd.New("PddToken")
rec, err := cli.DNSAdd(
context.Background(),
"domain.com",
yapdd.DNSTypeCNAME,
yapdd.NewDNSParams().Subdomain("www").Content("domain.com"),
)
Important note: http.DefaultClient is used in package by default. Please replace the HTTP client if you want to use yapdd in production. For example:
httpCli:=&http.Client{Timeout: time.Second}
cli := yapdd.New("PddToken", yapdd.WithHTTPClient(httpCli))