Change arguments: OTE

This commit is contained in:
fboltz 2021-01-17 17:25:33 +01:00
parent 0fdd2a8eaf
commit d8a0bc4dc9

View File

@ -77,13 +77,13 @@ type Client struct {
}
// NewClient represents a new client to call the API
func NewClient(production bool, apiKey, apiSecret string) (*Client, error) {
func NewClient(useOTE bool, apiKey, apiSecret string) (*Client, error) {
var endpoint string
if production {
endpoint = "https://api.godaddy.com"
} else {
if useOTE {
endpoint = " https://api.ote-godaddy.com"
} else {
endpoint = "https://api.godaddy.com"
}
client := Client{