-
Notifications
You must be signed in to change notification settings - Fork 28
Closed
Description
I get the following error when trying to
func cloudFlare() {
ctx := context.TODO()
zone := "theprimestyle.com."
// configure the DNS provider (choose any from github.com/libdns)
provider := cloudflare.Provider{APIToken: CLOUDFLARE_API_TOKEN}
// list records
listr, err := provider.GetRecords(ctx, zone)
fmt.Println(err)
if err == nil {
for i, rec := range listr {
fmt.Println(i, rec.ID, rec.Name, rec.Type, rec.Value, rec.TTL, rec.Priority)
}
}
}got error status: HTTP 400: [{Code:6003 Message:Invalid request headers}]
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels