// NewClient returns a new Hetzner Robot API client.
NewClient returns a new Hetzner Robot API client.
// NewClient returns a new Hetzner Robot API client .
func NewClient(username, password string, httpClient *http.Client) *Client {
	if httpClient == nil {
		httpClient = http.DefaultClient
	}
	baseURL, _ := url.Parse(defaultBaseURL)
	c := &Client{client: httpClient, username: username, password: password, BaseURL: baseURL, UserAgent: userAgent}
	c.Server = &ServerServiceOp{client: c}
	c.Order = &OrderServiceOp{client: c}
	return c
}
func NewClient ( username , password string , httpClient * http . Client ) * Client { if httpClient == nil { httpClient = http . DefaultClient } baseURL , _ := url . Parse ( defaultBaseURL ) c := & Client { client : httpClient , username : username , password : password , BaseURL : baseURL , UserAgent : userAgent } c . Server = & ServerServiceOp { client : c } c . Order = & OrderServiceOp { client : c } return c }
NewClient returns a new Hetzner Robot API client.
NewClient returns a new Hetzner Robot API client .