// NewClient returns a general Client structure.
NewClient returns a general Client structure.
// NewClient returns a general Client structure .
func NewClient(apiKey, endpointURL, companyID string, verbose bool) (*LastPassClient, error) {
	parsedURL, err := url.ParseRequestURI(endpointURL)
	if err != nil {
		return nil, err
	}
	return &LastPassClient{
		URL:       parsedURL,
		APIKey:    apiKey,
		Verbose:   verbose,
		UserAgent: defaultUserAgent,
		Headers:   http.Header{},
		Logger:    nil,
		CompanyID: companyID,
	}, nil
}
func NewClient ( apiKey , endpointURL , companyID string , verbose bool ) ( * LastPassClient , error ) { parsedURL , err := url . ParseRequestURI ( endpointURL ) if err != nil { return nil , err } return & LastPassClient { URL : parsedURL , APIKey : apiKey , Verbose : verbose , UserAgent : defaultUserAgent , Headers : http . Header { } , Logger : nil , CompanyID : companyID , } , nil }
NewClient returns a general Client structure.
NewClient returns a general Client structure .