Just to make sure we can trust the method signatures of all the service classes.
Author: Bas van Dorst
Exemplo n.º 1
0
 /**
  * Retrieve segment streams
  * @link    http://strava.github.io/api/v3/streams/#segment
  * @param   int $id
  * @param   string $types
  * @param   string $resolution
  * @param   string $series_type
  * @return  array
  * @throws  Exception
  */
 public function getStreamsSegment($id, $types, $resolution = null, $series_type = 'distance')
 {
     try {
         return $this->service->getStreamsSegment($id, $types, $resolution, $series_type);
     } catch (ServiceException $e) {
         throw new ClientException('[SERVICE] ' . $e->getMessage());
     }
 }