code: func encodeBody(obj interface{}) (io.Reader, error) {
  	buf := bytes.NewBuffer(nil)
  	enc := json.NewEncoder(buf)
  	if err := enc.Encode(obj); err != nil {
  		return nil, err
  	}
  	return buf, nil
  }
docs: // encodeBody is used to encode a request body