TijsVerkoyen\Twitter\Twitter::savedSearchesDestroy PHP Method

savedSearchesDestroy() public method

Destroys a saved search for the authenticating user. The authenticating user must be the owner of saved search id being destroyed.
public savedSearchesDestroy ( string $id ) : array
$id string The ID of the saved search.
return array
    public function savedSearchesDestroy($id)
    {
        return $this->doCall('saved_searches/destroy/' . (string) $id . '.json', null, true, 'POST');
    }

Usage Example

 /**
  * Tests Twitter->savedSearchesDestroy()
  */
 public function testSavedSearchesDestroy()
 {
     $response = $this->twitter->savedSearchesCreate(time());
     $response = $this->twitter->savedSearchesDestroy($response['id']);
     $this->assertArrayHasKey('created_at', $response);
     $this->assertArrayHasKey('id', $response);
     $this->assertArrayHasKey('name', $response);
     $this->assertArrayHasKey('query', $response);
 }
Twitter