Source for file trends.php
Documentation is available at trends.php
* @package Joomla.Platform
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE
defined('JPATH_PLATFORM') or die();
* Twitter API Trends class for the Joomla Platform.
* @package Joomla.Platform
* Method to get the top 10 trending topics for a specific WOEID, if trending information is available for it.
* @param integer $id The Yahoo! Where On Earth ID of the location to return trending information for.
* Global information is available by using 1 as the WOEID.
* @param string $exclude Setting this equal to hashtags will remove all hashtags from the trends list.
* @return array The decoded JSON response
public function getTrends($id, $exclude =
null)
// Check the rate limit for remaining hits
$path =
'/trends/place.json';
// Check if exclude is specified
$data['exclude'] =
$exclude;
* Method to get the locations that Twitter has trending topic information for.
* @return array The decoded JSON response
// Check the rate limit for remaining hits
$path =
'/trends/available.json';
* Method to get the locations that Twitter has trending topic information for, closest to a specified location.
* @param float $lat The latitude to search around.
* @param float $long The longitude to search around.
* @return array The decoded JSON response
public function getClosest($lat =
null, $long =
null)
// Check the rate limit for remaining hits
$path =
'/trends/closest.json';
// Check if lat is specified
// Check if long is specified
Documentation generated on Tue, 19 Nov 2013 15:16:01 +0100 by phpDocumentor 1.4.3