JTwittersearch::search
Method to get tweets that match a specified query.
Signature
public function search(string
$query,
[string
$callback = null,
[string
$geocode = null,
[string
$lang = null,
[string
$locale = null,
[string
$result_type = null,
[integer
$count = 15,
[string
$until = null,
[integer
$since_id = 0,
[integer
$max_id = 0,
[boolean
$entities = null]]]]]]]]]] )
Parameters
-
$query
- Search query. Should be URL encoded. Queries will be limited by complexity.
-
$callback
- If supplied, the response will use the JSONP format with a callback of the given name
-
$geocode
- Returns tweets by users located within a given radius of the given latitude/longitude. The parameter value is
-
$lang
- Restricts tweets to the given language, given by an ISO 639-1 code.
-
$locale
- Specify the language of the query you are sending (only ja is currently effective). This is intended for
-
$result_type
- Specifies what type of search results you would prefer to receive. The current default is "mixed."
-
$count
- The number of tweets to return per page, up to a maximum of 100. Defaults to 15.
-
$until
- Returns tweets generated before the given date. Date should be formatted as YYYY-MM-DD.
-
$since_id
- Returns results with an ID greater than (that is, more recent than) the specified ID.
-
$max_id
- Returns results with an ID less than (that is, older than) or equal to the specified ID.
-
$entities
- When set to either true, t or 1, each tweet will include a node called "entities,". This node offers a
Returns
- array
- The decoded JSON response