The response is an array of "locations" that encode the location's WOEID (a Yahoo! Where On Earth ID) and some other human-readable information such as a canonical name and country the location belongs in.
The WOEID that is returned in the location object is to be used when querying for a specific trend.
public trendsAvailable ( float[optional] $lat = null, float[optional] $long = null ) : array | ||
$lat | float[optional] | |
$long | float[optional] | |
return | array |
/** * Tests Twitter->trendsAvailable() */ public function testTrendsAvailable() { $response = $this->twitter->trendsAvailable(); foreach ($response as $row) { $this->isTrend($row); } }