Joomla CMS  3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
Tout Structures de données Espaces de nommage Fichiers Fonctions Variables Pages
Référence de la classe JTwitterTrends
+ Graphe d'héritage de JTwitterTrends:

Fonctions membres publiques

 getTrends ($id, $exclude=null)
 
 getLocations ()
 
 getClosest ($lat=null, $long=null)
 
- Fonctions membres publiques hérités de JTwitterObject
 __construct (Registry &$options=null, JHttp $client=null, JTwitterOAuth $oauth=null)
 
 checkRateLimit ($resource=null, $action=null)
 
 fetchUrl ($path, $parameters=null)
 
 getRateLimit ($resource)
 
 sendRequest ($path, $method='GET', $data=array(), $headers=array())
 
 getOption ($key)
 
 setOption ($key, $value)
 

Membres hérités additionnels

- Attributs protégés hérités de JTwitterObject
 $options
 
 $client
 
 $oauth
 

Description détaillée

Twitter API Trends class for the Joomla Platform.

Depuis
3.1.4
Obsolète:
4.0 Use the joomla/twitter package via Composer instead

Documentation des fonctions membres

◆ getClosest()

getClosest (   $lat = null,
  $long = null 
)

Method to get the locations that Twitter has trending topic information for, closest to a specified location.

Paramètres
float$latThe latitude to search around.
float$longThe longitude to search around.
Renvoie
array The decoded JSON response
Depuis
3.1.4

Références $data, et $path.

◆ getLocations()

getLocations ( )

Method to get the locations that Twitter has trending topic information for.

Renvoie
array The decoded JSON response
Depuis
3.1.4

Références $path.

◆ getTrends()

getTrends (   $id,
  $exclude = null 
)

Method to get the top 10 trending topics for a specific WOEID, if trending information is available for it.

Paramètres
integer$idThe Yahoo! Where On Earth ID of the location to return trending information for. Global information is available by using 1 as the WOEID.
string$excludeSetting this equal to hashtags will remove all hashtags from the trends list.
Renvoie
array The decoded JSON response
Depuis
3.1.4

Références $data, $id, et $path.


La documentation de cette classe a été générée à partir du fichier suivant :