func (api *API) PostReader(path string, r io.Reader) (body []byte, statusCode int, err error) {
	req, err := http.NewRequest("POST", api.host+path, r)
	if err != nil {
		return nil, 0, err
	}

	r, statusCode, err = api.do(req)
	if err != nil {
		return nil, statusCode, err
	}
	body, err = ioutil.ReadAll(r)
	return body, statusCode, err
}
// PostReader posts to API through a reader
PostReader posts to API through a reader
// PostReader posts to API through a reader
func (api *API) PostReader(path string, r io.Reader) (body []byte, statusCode int, err error) {
	req, err := http.NewRequest("POST", api.host+path, r)
	if err != nil {
		return nil, 0, err
	}
	r, statusCode, err = api.do(req)
	if err != nil {
		return nil, statusCode, err
	}
	body, err = ioutil.ReadAll(r)
	return body, statusCode, err
}
func ( api * API ) PostReader ( path string , r io . Reader ) ( body [ ] byte , statusCode int , err error ) { req , err := http . NewRequest ( " " , api . host + path , r ) if err != nil { return nil , 0 , err } r , statusCode , err = api . do ( req ) if err != nil { return nil , statusCode , err } body , err = ioutil . ReadAll ( r ) return body , statusCode , err }
PostReader posts to API through a reader
PostReader posts to API through a reader