func NewClient(userID string, password string) (*Client, error) {
	jClient := &Client{}

	jClient.userID = userID
	jClient.password = password

	options := cookiejar.Options{
		PublicSuffixList: publicsuffix.List,
	}
	jar, err := cookiejar.New(&options)
	if err != nil {
		return nil, err
	}
	client := http.Client{Jar: jar}

	tr := &http.Transport{
		TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
	}
	client.Transport = tr
	client.CheckRedirect = nil

	jClient.httpClient = &client

	// Provide a no-op logger as the default
	jClient.Log = log.New(ioutil.Discard, "", log.LstdFlags)

	return jClient, nil
}
// Create a new client for making http requests against a Jazz server with the provided credentials
// The client will execute the requests authenticating somewhat transparently when needed
Create a new client for making http requests against a Jazz server with the provided credentials
The client will execute the requests authenticating somewhat transparently when needed
// Create a new client for making http requests against a Jazz server with the provided credentials // The client will execute the requests authenticating somewhat transparently when needed
func NewClient(userID string, password string) (*Client, error) {
	jClient := &Client{}
	jClient.userID = userID
	jClient.password = password
	options := cookiejar.Options{
		PublicSuffixList: publicsuffix.List,
	}
	jar, err := cookiejar.New(&options)
	if err != nil {
		return nil, err
	}
	client := http.Client{Jar: jar}
	tr := &http.Transport{
		TLSClientConfig: &tls.Config{InsecureSkipVerify: true},
	}
	client.Transport = tr
	client.CheckRedirect = nil
	jClient.httpClient = &client
	jClient.Log = log.New(ioutil.Discard, "", log.LstdFlags)
	return jClient, nil
}
func NewClient ( userID string , password string ) ( * Client , error ) { jClient := & Client { } jClient . userID = userID jClient . password = password options := cookiejar . Options { PublicSuffixList : publicsuffix . List , } jar , err := cookiejar . New ( & options ) if err != nil { return nil , err } client := http . Client { Jar : jar } tr := & http . Transport { TLSClientConfig : & tls . Config { InsecureSkipVerify : true } , } client . Transport = tr client . CheckRedirect = nil jClient . httpClient = & client jClient . Log = log . New ( ioutil . Discard , " " , log . LstdFlags ) return jClient , nil }
Create a new client for making http requests against a Jazz server with the provided credentials
The client will execute the requests authenticating somewhat transparently when needed
Create a new client for making http requests against a Jazz server with the provided credentials The client will execute the requests authenticating somewhat transparently when needed
// Provide a no-op logger as the default