Documentation ¶
Index ¶
Constants ¶
View Source
const ( DefaultBaseURL = "https://api.namecheap.com/xml.response" SandboxBaseURL = "https://api.sandbox.namecheap.com/xml.response" )
Default API endpoints.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Client ¶
type Client struct { BaseURL string HTTPClient *http.Client // contains filtered or unexported fields }
Client the API client for Namecheap.
func (*Client) GetHosts ¶
GetHosts reads the full list of DNS host records. https://www.namecheap.com/support/api/methods/domains-dns/get-hosts.aspx
type Record ¶
type Record struct { Type string `xml:",attr"` Name string `xml:",attr"` Address string `xml:",attr"` MXPref string `xml:",attr"` TTL string `xml:",attr"` }
Record describes a DNS record returned by the Namecheap DNS gethosts API. Namecheap uses the term "host" to refer to all DNS records that include a host field (A, AAAA, CNAME, NS, TXT, URL).
Click to show internal directories.
Click to hide internal directories.