getActivity() public method

public getActivity ( integer $id, boolean $include_all_efforts = null )
$id integer
$include_all_efforts boolean
Ejemplo n.º 1
0
 /**
  * Retrieve an activity
  * 
  * @link    http://strava.github.io/api/v3/athlete/#get-details,
  *          http://strava.github.io/api/v3/athlete/#get-another-details
  * @param   int $id
  * @param   boolean $include_all_efforts
  * @return  array
  * @throws  Exception
  */
 public function getActivity($id, $include_all_efforts = null)
 {
     try {
         return $this->service->getActivity($id, $include_all_efforts);
     } catch (ServiceException $e) {
         throw new ClientException('[SERVICE] ' . $e->getMessage());
     }
 }