public savedSearchesCreate ( string $query ) : array | ||
$query | string | The query of the search the user would like to save. |
Résultat | array |
public function savedSearchesCreate($query)
{
// build parameters
$parameters['query'] = (string) $query;
// make the call
return $this->doCall('saved_searches/create.json', $parameters, true, 'POST');
}
/** * 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); }