10 defined(
'JPATH_PLATFORM') or die();
32 public function getTrends($id, $exclude = null)
35 $this->checkRateLimit(
'trends',
'place');
38 $path =
'/trends/place.json';
45 $data[
'exclude'] = $exclude;
49 return $this->sendRequest($path,
'GET', $data);
59 public function getLocations()
62 $this->checkRateLimit(
'trends',
'available');
65 $path =
'/trends/available.json';
68 return $this->sendRequest($path);
81 public function getClosest($lat = null, $long = null)
84 $this->checkRateLimit(
'trends',
'closest');
87 $path =
'/trends/closest.json';
100 $data[
'long'] = $long;
104 return $this->sendRequest($path,
'GET', $data);