reinventer / yapdd

Golang package that provides a client implementation of Yandex.Mail for Domain API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Yapdd

Build Status

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))

About

Golang package that provides a client implementation of Yandex.Mail for Domain API

License:MIT License


Languages

Language:Go 100.0%