provider/dnsimple.go
func (p *dnsimpleProvider) GetAccountID(credentials dnsimple.Credentials, client dnsimple.Client) (accountID string, err error) {
	// get DNSimple client accountID
	whoamiResponse, err := client.Identity.Whoami()
	if err != nil {
		return "", err
	}
	return strconv.Itoa(whoamiResponse.Data.Account.ID), nil
}
func (p *dnsimpleProvider) GetAccountID(credentials dnsimple.Credentials, client dnsimple.Client) (accountID string, err error) {
	// get DNSimple client accountID
	whoamiResponse, err := client.Identity.Whoami()
	if err != nil {
		return "", err
	}
	return strconv.Itoa(whoamiResponse.Data.Account.ID), nil
}
func ( p * dnsimpleProvider ) GetAccountID ( credentials dnsimple . Credentials , client dnsimple . Client ) ( accountID string , err error ) { // get DNSimple client accountID whoamiResponse , err := client . Identity . Whoami ( ) if err != nil { return " " , err } return strconv . Itoa ( whoamiResponse . Data . Account . ID ) , nil }
// Returns the account ID given dnsimple credentials
Returns the account ID given dnsimple credentials