Twitter Trends

With so many tweets from so many users, themes are bound to arise from the zeitgeist. The Trends methods allow you to explore what's trending on Twitter.

Figure 1a. Instantiate Trends
$trends = eden('twitter')->trends('[TWITTER_KEY]', '[TWITTER_SECRET]', $_SESSION['access_token'], $_SESSION['access_secret']);
Figure 1d. Trends Methods
Method Arguments Returns Description
$trends->getPlaceTrending($id);
  1. string|integer
  2. - The Yahoo! Where On Earth ID of the location to return trending information for. Global information is available by using 1 as the WOEID.
array Returns the top 10 trending topics for a specific WOEID, if trending information is available for it.
$trends->getAvailableTrending(); none array Returns the locations that Twitter has trending topic information for.
$trends->getClosestTrending($lat = NULL, $long = NULL);
  1. float|null
  2. float|null
array Returns the locations that Twitter has trending topic information for, closest to a specified location.

© 2012 Openovate Labs. All rights reserved.