func NewClient(httpClient *http.Client) *Client {
	if httpClient == nil {
		httpClient = http.DefaultClient
	}
	client := &Client{
		Client: *httpClient,
		UserAgent: "Akamai-Open-Edgegrid-golang/" + libraryVersion +
			" golang/" + strings.TrimPrefix(runtime.Version(), "go"),
	}
	return client
}
NewClient creates a new Client

Deprecated: use github.com/akamai/AkamaiOPEN-edgegrid-golang/client
package edgegrid
import (
	"bytes"
	"encoding/json"
	"errors"
	"io/ioutil"
	"net/http"
	"net/url"
	"runtime"
	"strings"
)
const (
	libraryVersion = "0.3.0"
)
type Response http.Response
type Client struct {
	http.Client
	BaseURL *url.URL
	UserAgent string
	Config Config
}
type JSONBody map[string]interface{}
func New(httpClient *http.Client, config Config) (*Client, error) {
	c := NewClient(httpClient)
	c.Config = config
	baseURL, err := url.Parse("https://" + config.Host)
	if err != nil {
		return nil, err
	}
	c.BaseURL = baseURL
	return c, nil
}