|
| | search ($query, $callback=null, $geocode=null, $lang=null, $locale=null, $resultType=null, $count=15, $until=null, $sinceId=0, $maxId=0, $entities=null) |
| |
| | getSavedSearches () |
| |
| | getSavedSearchesById ($id) |
| |
| | createSavedSearch ($query) |
| |
| | deleteSavedSearch ($id) |
| |
Twitter API Search class for the Joomla Platform.
- Depuis
- 3.1.4
- Obsolète:
- 4.0 Use the
joomla/twitter package via Composer instead
◆ createSavedSearch()
| createSavedSearch |
( |
|
$query | ) |
|
Method to create a new saved search for the authenticated user.
- Paramètres
-
| string | $query | The query of the search the user would like to save. |
- Renvoie
- array The decoded JSON response
- Depuis
- 3.1.4
Références $data, $path, et $query.
◆ deleteSavedSearch()
Method to delete a saved search for the authenticating user.
- Paramètres
-
| integer | $id | The ID of the saved search. |
- Renvoie
- array The decoded JSON response
- Depuis
- 3.1.4
Références $id, et $path.
◆ getSavedSearches()
Method to get the authenticated user's saved search queries.
- Renvoie
- array The decoded JSON response
- Depuis
- 3.1.4
Références $path.
◆ getSavedSearchesById()
| getSavedSearchesById |
( |
|
$id | ) |
|
Method to get the information for the saved search represented by the given id.
- Paramètres
-
| integer | $id | The ID of the saved search. |
- Renvoie
- array The decoded JSON response
- Depuis
- 3.1.4
Références $id, et $path.
◆ search()
| search |
( |
|
$query, |
|
|
|
$callback = null, |
|
|
|
$geocode = null, |
|
|
|
$lang = null, |
|
|
|
$locale = null, |
|
|
|
$resultType = null, |
|
|
|
$count = 15, |
|
|
|
$until = null, |
|
|
|
$sinceId = 0, |
|
|
|
$maxId = 0, |
|
|
|
$entities = null |
|
) |
| |
Method to get tweets that match a specified query.
- Paramètres
-
| string | $query | Search query. Should be URL encoded. Queries will be limited by complexity. |
| string | $callback | If supplied, the response will use the JSONP format with a callback of the given name |
| string | $geocode | Returns tweets by users located within a given radius of the given latitude/longitude. The parameter value is specified by "latitude,longitude,radius", where radius units must be specified as either "mi" (miles) or "km" (kilometers). |
| string | $lang | Restricts tweets to the given language, given by an ISO 639-1 code. |
| string | $locale | Specify the language of the query you are sending (only ja is currently effective). This is intended for language-specific clients and the default should work in the majority of cases. |
| string | $resultType | Specifies what type of search results you would prefer to receive. The current default is "mixed." |
| integer | $count | The number of tweets to return per page, up to a maximum of 100. Defaults to 15. |
| string | $until | Returns tweets generated before the given date. Date should be formatted as YYYY-MM-DD. |
| integer | $sinceId | Returns results with an ID greater than (that is, more recent than) the specified ID. |
| integer | $maxId | Returns results with an ID less than (that is, older than) or equal to the specified ID. |
| boolean | $entities | When set to either true, t or 1, each tweet will include a node called "entities,". This node offers a variety of metadata about the tweet in a discrete structure, including: urls, media and hashtags. |
- Renvoie
- array The decoded JSON response
- Depuis
- 3.1.4
Références $count, $data, $lang, $path, et $query.
La documentation de cette classe a été générée à partir du fichier suivant :