code: func NewDNSProviderConfig(config *Config) (*DNSProvider, error) {
  	if config == nil {
  		return nil, errors.New("dnsmadeeasy: the configuration of the DNS provider is nil")
  	}
  
  	var baseURL string
  	if config.Sandbox {
  		baseURL = "https://api.sandbox.dnsmadeeasy.com/V2.0"
  	} else {
  		if len(config.BaseURL) > 0 {
  			baseURL = config.BaseURL
  		} else {
  			baseURL = "https://api.dnsmadeeasy.com/V2.0"
  		}
  	}
  
  	client, err := internal.NewClient(config.APIKey, config.APISecret)
  	if err != nil {
  		return nil, fmt.Errorf("dnsmadeeasy: %v", err)
  	}
  
  	client.HTTPClient = config.HTTPClient
  	client.BaseURL = baseURL
  
  	return &DNSProvider{
  		client: client,
  		config: config,
  	}, nil
  }
docs: // NewDNSProviderConfig return a DNSProvider instance configured for DNS Made Easy.