code: func (cli *Client) getAPIPath(ctx context.Context, p string, query url.Values) string {
  	var apiPath string
  	if cli.negotiateVersion && !cli.negotiated {
  		cli.NegotiateAPIVersion(ctx)
  	}
  	if cli.version != "" {
  		v := strings.TrimPrefix(cli.version, "v")
  		apiPath = path.Join(cli.basePath, "/v"+v, p)
  	} else {
  		apiPath = path.Join(cli.basePath, p)
  	}
  	return (&url.URL{Path: apiPath, RawQuery: query.Encode()}).String()
  }
docs: // getAPIPath returns the versioned request path to call the api.
  // It appends the query parameters to the path if they are not empty.