public function getActivityList($intStart = 0, $intLimit = 10, $strActivityType = null)
    {
        $arrParams = array(
            'start' => $intStart,
            'limit' => $intLimit
        );

        if (null !== $strActivityType) {
            $arrParams['activityType'] = $strActivityType;
        }

        $strResponse = $this->objConnector->get(
            'https://connect.garmin.com/modern/proxy/activitylist-service/activities/search/activities',
            $arrParams,
            true
        );

        if ($this->objConnector->getLastResponseCode() != 200) {
            throw new UnexpectedResponseCodeException($this->objConnector->getLastResponseCode());
        }
        $objResponse = json_decode($strResponse);
        return $objResponse;
    }
public function getActivityList($intStart = 0, $intLimit = 10, $strActivityType = null)
    {
        $arrParams = array(
            'start' => $intStart,
            'limit' => $intLimit
        );

        if (null !== $strActivityType) {
            $arrParams['activityType'] = $strActivityType;
        }

        $strResponse = $this->objConnector->get(
            'https://connect.garmin.com/modern/proxy/activitylist-service/activities/search/activities',
            $arrParams,
            true
        );

        if ($this->objConnector->getLastResponseCode() != 200) {
            throw new UnexpectedResponseCodeException($this->objConnector->getLastResponseCode());
        }
        $objResponse = json_decode($strResponse);
        return $objResponse;
    }
public function getActivityList ( $ intStart = 0 , $ intLimit = 10 , $ strActivityType = null ) { $ arrParams = array ( 'start' => $ intStart , 'limit' => $ intLimit ) ; if ( null !== $ strActivityType ) { $ arrParams [ 'activityType' ] = $ strActivityType ; } $ strResponse = $ this -> objConnector -> get ( 'https://connect.garmin.com/modern/proxy/activitylist-service/activities/search/activities' , $ arrParams , true ) ; if ( $ this -> objConnector -> getLastResponseCode ( ) != 200 ) { throw new UnexpectedResponseCodeException ( $ this -> objConnector -> getLastResponseCode ( ) ) ; } $ objResponse = json_decode ( $ strResponse ) ; return $ objResponse ; }
Gets a list of activities

@param integer $intStart
@param integer $intLimit
@param null $strActivityType
@return mixed
@throws UnexpectedResponseCodeException
Gets a list of activities