getSegmentExplorer() public method

public getSegmentExplorer ( string $bounds, $activity_type = 'riding', integer $min_cat = null, integer $max_cat = null )
$bounds string
$min_cat integer
$max_cat integer
Ejemplo n.º 1
0
 /**
  * Segment explorer
  * 
  * @link    http://strava.github.io/api/v3/segments/#explore
  * @param   string $bounds
  * @param   string $activity_type
  * @param   int $min_cat
  * @param   int $max_cat
  * @return  array
  * @throws  Exception
  */
 public function getSegmentExplorer($bounds, $activity_type = 'riding', $min_cat = null, $max_cat = null)
 {
     try {
         return $this->service->getSegmentExplorer($bounds, $activity_type, $min_cat, $max_cat);
     } catch (ServiceException $e) {
         throw new ClientException('[SERVICE] ' . $e->getMessage());
     }
 }