src/Upwork/API/Routers/Reports/Time.php
private function _getByType($company, $team = null, $agency = null, $params = array(), $hideFinDetails = false)
    {
        ApiDebug::p(__FUNCTION__);

        $_url = '';
        if ($team) {
            $_url = '/teams/' . $team;
            if ($hideFinDetails) {
                $_url .= '/hours';
            }
        } elseif ($agency) {
            $_url = '/agencies/' . $agency;
        }

        $report = $this->_client->get('/timereports/v1/companies/' . $company . $_url, $params);
        ApiDebug::p('found report info', $report);

        return $report;
    }
private function _getByType($company, $team = null, $agency = null, $params = array(), $hideFinDetails = false)
    {
        ApiDebug::p(__FUNCTION__);

        $_url = '';
        if ($team) {
            $_url = '/teams/' . $team;
            if ($hideFinDetails) {
                $_url .= '/hours';
            }
        } elseif ($agency) {
            $_url = '/agencies/' . $agency;
        }

        $report = $this->_client->get('/timereports/v1/companies/' . $company . $_url, $params);
        ApiDebug::p('found report info', $report);

        return $report;
    }
Generate Time Reports for a Specific Team/Comapny/Agency

@param   string $company Company ID
@param   string $team (Optional) Team ID
@param   string $agency (Optional) Agency ID
@param   array $params (Optional) Parameters
@param   boolean $hideFinDetails (Optional) Hides all financial details
@return  object