gandi-api
gandi-api copied to clipboard
Invalid API key
Hi, The api key was extracted from https://account.gandi.net/en/users/$USERNAME/security at row Production API key for LiveDNS
here's the error I get even though the API key is correct
Livedns system type
request error: bad status code - 405
here's a brief demonstration:
package main
import (
"fmt"
gandi "github.com/prasmussen/gandi-api/client"
"github.com/prasmussen/gandi-api/live_dns/domain"
)
const (
apikey = "myapikey"
)
func main() {
c := gandi.New(apikey, gandi.LiveDNS)
z := domain.New(c)
zl, err := z.List()
if err != nil {
panic(err)
}
for _, v := range zl {
fmt.Println(v)
}
}