innkeeperclient/ik_client.go
func (s *IkClient) Call(path string, query interface{}, jsonResp interface{}) (err error) {
	res, err := goreq.Request{
		Insecure:          true,
		Uri:               s.URI + "/" + path,
		BasicAuthUsername: s.User,
		BasicAuthPassword: s.Password,
		QueryString:       query}.Do()
	if err == nil {

		if isStatusOK(res.StatusCode) {
			err = res.Body.FromJsonTo(jsonResp)

		} else {
			strerr, _ := res.Body.ToString()
			err = errors.New(strerr)
		}
	}
	return
}
func (s *IkClient) Call(path string, query interface{}, jsonResp interface{}) (err error) {
	res, err := goreq.Request{
		Insecure:          true,
		Uri:               s.URI + "/" + path,
		BasicAuthUsername: s.User,
		BasicAuthPassword: s.Password,
		QueryString:       query}.Do()
	if err == nil {

		if isStatusOK(res.StatusCode) {
			err = res.Body.FromJsonTo(jsonResp)

		} else {
			strerr, _ := res.Body.ToString()
			err = errors.New(strerr)
		}
	}
	return
}
// Call -- generic call to the inkeeper endpoint