getActivityPhotos() public method

public getActivityPhotos ( integer $id, $size = 2048, $photo_sources = 'true' )
$id integer
Ejemplo n.º 1
0
 /**
  * List activity photos
  * 
  * @link    http://strava.github.io/api/v3/photos/#list
  * @param   int $id
  * @param   int $size In pixels.
  * @param   string $photo_sources Must be "true".
  * @return  array
  * @throws  Exception
  */
 public function getActivityPhotos($id, $size = 2048, $photo_sources = 'true')
 {
     try {
         return $this->service->getActivityPhotos($id, $size, $photo_sources);
     } catch (ServiceException $e) {
         throw new ClientException('[SERVICE] ' . $e->getMessage());
     }
 }
Ejemplo n.º 2
0
 /**
  * List activity photos
  * 
  * @link    http://strava.github.io/api/v3/photos/#list
  * @param   int $id
  * @return  array
  * @throws  Exception
  */
 public function getActivityPhotos($id)
 {
     try {
         return $this->service->getActivityPhotos($id);
     } catch (ServiceException $e) {
         throw new ClientException('[SERVICE] ' . $e->getMessage());
     }
 }