public function getDataFile($strType, $intActivityID)
    {
        switch ($strType) {
            case self::DATA_TYPE_GPX:
            case self::DATA_TYPE_TCX:
            case self::DATA_TYPE_GOOGLE_EARTH:
                break;

            default:
                throw new Exception("Unsupported data type");
        }

        $strUrl = "https://connect.garmin.com/modern/proxy/download-service/export/" . $strType . "/activity/" . $intActivityID;

        $strResponse = $this->objConnector->get($strUrl);
        if ($this->objConnector->getLastResponseCode() != 200) {
            throw new UnexpectedResponseCodeException($this->objConnector->getLastResponseCode());
        }
        return $strResponse;
    }
public function getDataFile($strType, $intActivityID)
    {
        switch ($strType) {
            case self::DATA_TYPE_GPX:
            case self::DATA_TYPE_TCX:
            case self::DATA_TYPE_GOOGLE_EARTH:
                break;

            default:
                throw new Exception("Unsupported data type");
        }

        $strUrl = "https://connect.garmin.com/modern/proxy/download-service/export/" . $strType . "/activity/" . $intActivityID;

        $strResponse = $this->objConnector->get($strUrl);
        if ($this->objConnector->getLastResponseCode() != 200) {
            throw new UnexpectedResponseCodeException($this->objConnector->getLastResponseCode());
        }
        return $strResponse;
    }
public function getDataFile ( $ strType , $ intActivityID ) { switch ( $ strType ) { case self :: DATA_TYPE_GPX : case self :: DATA_TYPE_TCX : case self :: DATA_TYPE_GOOGLE_EARTH : break ; default : throw new Exception ( "Unsupported data type" ) ; } $ strUrl = "https://connect.garmin.com/modern/proxy/download-service/export/" . $ strType . "/activity/" . $ intActivityID ; $ strResponse = $ this -> objConnector -> get ( $ strUrl ) ; if ( $ this -> objConnector -> getLastResponseCode ( ) != 200 ) { throw new UnexpectedResponseCodeException ( $ this -> objConnector -> getLastResponseCode ( ) ) ; } return $ strResponse ; }
Retrieves the data file for the activity

@param string $strType
@param $intActivityID
@throws GarminConnect\exceptions\UnexpectedResponseCodeException
@throws Exception
@return mixed
Retrieves the data file for the activity