Joomla CMS  3.8.5 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.8.5 et du framework Joomla Platform intégré
Référence de la classe JTwitterFavorites
+ Graphe d'héritage de JTwitterFavorites:

Fonctions membres publiques

 getFavorites ($user=null, $count=20, $since_id=0, $max_id=0, $entities=null)
 
 createFavorites ($id, $entities=null)
 
 deleteFavorites ($id, $entities=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 Favorites class for the Joomla Platform.

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

Documentation des fonctions membres

◆ createFavorites()

createFavorites (   $id,
  $entities = null 
)

Method to favorite the status specified in the ID parameter as the authenticating user

Paramètres
integer$idThe numerical ID of the desired status.
boolean$entitiesWhen set to true, each tweet will include a node called "entities,". This node offers a variety of metadata about the tweet in a discreet structure, including: user_mentions, urls, and hashtags.
Renvoie
array The decoded JSON response
Depuis
12.3

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

◆ deleteFavorites()

deleteFavorites (   $id,
  $entities = null 
)

Method to un-favorites the status specified in the ID parameter as the authenticating user.

Paramètres
integer$idThe numerical ID of the desired status.
boolean$entitiesWhen set to true, each tweet will include a node called "entities,". This node offers a variety of metadata about the tweet in a discreet structure, including: user_mentions, urls, and hashtags.
Renvoie
array The decoded JSON response
Depuis
12.3

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

◆ getFavorites()

getFavorites (   $user = null,
  $count = 20,
  $since_id = 0,
  $max_id = 0,
  $entities = null 
)

Method to get the most recent favorite statuses for the authenticating or specified user.

Paramètres
mixed$userEither an integer containing the user ID or a string containing the screen name.
integer$countSpecifies the number of tweets to try and retrieve, up to a maximum of 200. Retweets are always included in the count, so it is always suggested to set $include_rts to true
integer$since_idReturns results with an ID greater than (that is, more recent than) the specified ID.
integer$max_idReturns results with an ID less than (that is, older than) the specified ID.
boolean$entitiesWhen set to true, each tweet will include a node called "entities,". This node offers a variety of metadata about the tweet in a discreet structure, including: user_mentions, urls, and hashtags.
Renvoie
array The decoded JSON response
Depuis
12.3

Références $count, $data, $path, $user, et elseif.


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