TijsVerkoyen\Twitter\Twitter::savedSearchesShow PHP Метод

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

Retrieve the information for the saved search represented by the given id. The authenticating user must be the owner of saved search ID being requested.
public savedSearchesShow ( string $id ) : array
$id string The ID of the saved search.
Результат array
    public function savedSearchesShow($id)
    {
        // make the call
        return $this->doCall('saved_searches/show/' . (string) $id . '.json', null, true);
    }

Usage Example

Пример #1
0
 /**
  * Tests Twitter->savedSearchesShow()
  */
 public function testSavedSearchesShow()
 {
     $response = $this->twitter->savedSearchesCreate(time());
     $response = $this->twitter->savedSearchesShow($response['id']);
     $this->twitter->savedSearchesDestroy($response['id']);
     $this->assertArrayHasKey('created_at', $response);
     $this->assertArrayHasKey('id', $response);
     $this->assertArrayHasKey('name', $response);
     $this->assertArrayHasKey('query', $response);
 }
Twitter