func Put(path string, payload, result interface{}) error { resp, err := newSession().Put(config.Get("ServerUrl")+path, &payload, &result, nil) return checkResponseError(resp, err) }
func Get(path string, params *napping.Params, result interface{}) error { resp, err := newSession().Get(config.Get("ServerUrl")+path, params, &result, nil) return checkResponseError(resp, err) }
func Delete(path string, result interface{}) error { resp, err := newSession().Delete(config.Get("ServerUrl")+path, &result, nil) return checkResponseError(resp, err) }