public trendsAvailable ( float[optional] $lat = null, float[optional] $long = null ) : array | ||
$lat | float[optional] | |
$long | float[optional] | |
return | array |
public function trendsAvailable($lat = null, $long = null)
{
// build parameters
$parameters = null;
if ($lat != null) {
$parameters['lat_for_trends'] = (double) $lat;
}
if ($long != null) {
$parameters['long_for_trends'] = (double) $long;
}
// make the call
return $this->doCall('trends/available.json', $parameters);
}
/** * Tests Twitter->trendsAvailable() */ public function testTrendsAvailable() { $response = $this->twitter->trendsAvailable(); foreach ($response as $row) { $this->isTrend($row); } }