getAthlete() public method

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