cm16/commands.go
func (a *API) RunCommand(cmd string) (*http.Response, error) {
	parsed, err := a.ParseCommand(cmd, "/api", commandValues)
	if err != nil {
		return nil, err
	}
	href := parsed.URI
	if !strings.HasPrefix(href, "/api") {
		href = path.Join("/api", href)
	}
	req, err := a.BuildHTTPRequest("GET", href, "1.6", parsed.QueryParams, nil)
	if err != nil {
		return nil, err
	}
	return a.PerformRequest(req)
}
func (a *API) RunCommand(cmd string) (*http.Response, error) {
	parsed, err := a.ParseCommand(cmd, "/api", commandValues)
	if err != nil {
		return nil, err
	}
	href := parsed.URI
	if !strings.HasPrefix(href, "/api") {
		href = path.Join("/api", href)
	}
	req, err := a.BuildHTTPRequest("GET", href, "1.6", parsed.QueryParams, nil)
	if err != nil {
		return nil, err
	}
	return a.PerformRequest(req)
}
// RunCommand parses and runs the command with the given name.