trendsPlace() публичный Метод

The response is an array of "trend" objects that encode the name of the trending topic, the query parameter that can be used to search for the topic on Twitter Search, and the Twitter Search URL. This information is cached for 5 minutes. Requesting more frequently than that will not return any more data, and will count against your rate limit usage.
public trendsPlace ( string $id, string[optional] $exclude = null ) : array
$id string The Yahoo! Where On Earth ID of the location to return trending information for. Global information is available by using 1 as the WOEID.
$exclude string[optional]
Результат array
Пример #1
0
 /**
  * Tests Twitter->trendsPlace()
  */
 public function testTrendsPlace()
 {
     $response = $this->twitter->trendsPlace(1);
     foreach ($response as $row) {
         $this->assertArrayHasKey('as_of', $row);
         $this->assertArrayHasKey('created_at', $row);
         $this->assertArrayHasKey('trends', $row);
         foreach ($row['trends'] as $subRow) {
             $this->assertArrayHasKey('name', $subRow);
             $this->assertArrayHasKey('promoted_content', $subRow);
             $this->assertArrayHasKey('events', $subRow);
             $this->assertArrayHasKey('url', $subRow);
             $this->assertArrayHasKey('query', $subRow);
         }
     }
 }