Strava\API\Service\ServiceInterface::getAthleteStats PHP Метод

getAthleteStats() публичный Метод

Only available for the authenticated athlete.
public getAthleteStats ( integer $id ) : array
$id integer
Результат array
    public function getAthleteStats($id);

Usage Example

Пример #1
0
 /**
  * Retrieve athlete stats
  *
  * Only available for the authenticated athlete.
  *
  * @link    http://strava.github.io/api/v3/athlete/#stats
  * @param   int $id
  * @return  array
  * @throws  ClientException
  */
 public function getAthleteStats($id)
 {
     try {
         return $this->service->getAthleteStats($id);
     } catch (ServiceException $e) {
         throw new ClientException('[SERVICE] ' . $e->getMessage());
     }
 }