JTwitterStatuses
class JTwitterStatuses extends JTwitterObject
Twitter API Statuses class for the Joomla Platform.
Methods
Constructor.
Method to check the rate limit for the requesting IP address
Method to build and return a full request URL for the request. This method will add appropriate pagination details if necessary and also prepend the API url to have a complete URL for the request.
Method to retrieve the rate limit for the requesting IP address
Method to send the request.
Set an option for the JTwitterObject instance.
Method to get a single tweet with the given ID.
Method to retrieve the latest statuses from the specified user timeline.
Method to post a tweet.
Method to retrieve the most recent mentions for the authenticating user.
Method to get the most recent tweets of the authenticated user that have been retweeted by others.
Method to show user objects of up to 100 members who retweeted the status.
Method to get up to 100 of the first retweets of a given tweet.
Method to delete the status specified by the required ID parameter.
Method to retweet a tweet.
Method to post a tweet with media.
Method to get information allowing the creation of an embedded representation of a Tweet on third party sites.
Details
__construct(
Registry $options = null,
JHttp $client = null,
JTwitterOAuth $oauth = null)
Constructor.
void
checkRateLimit(
string $resource = null,
string $action = null)
Method to check the rate limit for the requesting IP address
string
fetchUrl(
string $path,
array $parameters = null)
Method to build and return a full request URL for the request. This method will add appropriate pagination details if necessary and also prepend the API url to have a complete URL for the request.
array
getRateLimit(
string $resource)
Method to retrieve the rate limit for the requesting IP address
array
sendRequest(
string $path,
string $method = 'GET',
mixed $data = array(),
array $headers = array())
Method to send the request.
array
getTweetById(
integer $id,
boolean $trim_user = null,
boolean $entities = null,
boolean $my_retweet = null)
Method to get a single tweet with the given ID.
array
getUserTimeline(
mixed $user,
integer $count = 20,
boolean $include_rts = null,
boolean $no_replies = null,
integer $since_id,
integer $max_id,
boolean $trim_user = null,
boolean $contributor = null)
Method to retrieve the latest statuses from the specified user timeline.
array
tweet(
string $status,
integer $in_reply_to_status_id = null,
float $lat = null,
float $long = null,
string $place_id = null,
boolean $display_coordinates = null,
boolean $trim_user = null)
Method to post a tweet.
array
getMentions(
integer $count = 20,
boolean $include_rts = null,
boolean $entities = null,
integer $since_id,
integer $max_id,
boolean $trim_user = null,
string $contributor = null)
Method to retrieve the most recent mentions for the authenticating user.
array
getRetweetsOfMe(
integer $count = 20,
integer $since_id,
boolean $entities = null,
boolean $user_entities = null,
integer $max_id,
boolean $trim_user = null)
Method to get the most recent tweets of the authenticated user that have been retweeted by others.
array
getRetweeters(
integer $id,
integer $count = 20,
integer $cursor = null,
boolean $stringify_ids = null)
Method to show user objects of up to 100 members who retweeted the status.
array
getRetweetsById(
integer $id,
integer $count = 20,
boolean $trim_user = null)
Method to get up to 100 of the first retweets of a given tweet.
array
deleteTweet(
integer $id,
boolean $trim_user = null)
Method to delete the status specified by the required ID parameter.
array
tweetWithMedia(
string $status,
string $media,
integer $in_reply_to_status_id = null,
float $lat = null,
float $long = null,
string $place_id = null,
boolean $display_coordinates = null,
boolean $sensitive = null)
Method to post a tweet with media.
array
getOembed(
integer $id = null,
string $url = null,
integer $maxwidth = null,
boolean $hide_media = null,
boolean $hide_thread = null,
boolean $omit_script = null,
string $align = null,
string $related = null,
string $lang = null)
Method to get information allowing the creation of an embedded representation of a Tweet on third party sites.
Note: either the id or url parameters must be specified in a request. It is not necessary to include both.