private function _getByType($company, $team, $code = null)
    {
        ApiDebug::p(__FUNCTION__);

        $_url = '';
        if (!empty($code)) {
            $_url = '/' . $code;
        }

        $response = $this->_client->get('/otask/v1/tasks/companies/' . $company . '/teams/' . $team . '/tasks' . $_url);
        ApiDebug::p('found response info', $response);

        return $response;
    }