example site
This commit is contained in:
parent
400163d63c
commit
2da8c59ce4
@ -9,9 +9,9 @@ import (
|
|||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
client := easydns.NewClient("https://sandbox.rest.easydns.net", "APITOKEN", "APIKEY")
|
client := easydns.NewClient("https://sandbox.rest.easydns.net", "APITOKEN", "APIKEY")
|
||||||
recordList, err := client.GetRecordList("nextdigital.ca")
|
recordList, err := client.GetRecordList("myeasydnssite.ca")
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatalf("failed to get records for nextdigital.ca: %v", err)
|
log.Fatalf("failed to get records for myeasydnssite.ca: %v", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, record := range recordList.Data {
|
for _, record := range recordList.Data {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user