/**
* List efforts filtered by athlete and/or a date range
*
* @link http://strava.github.io/api/v3/segments/#efforts
* @param int $id
* @param int $athlete_id
* @param string $start_date_local
* @param string $end_date_local
* @param int $page
* @param int $per_page
* @return array
* @throws Exception
*/
public function getSegmentEffort($id, $athlete_id = null, $start_date_local = null, $end_date_local = null, $page = null, $per_page = null)
{
try {
return $this->service->getSegmentEffort($id, $athlete_id, $start_date_local, $end_date_local, $page, $per_page);
} catch (ServiceException $e) {
throw new ClientException('[SERVICE] ' . $e->getMessage());
}
}