JTwitter

Joomla Platform class for interacting with a Twitter API instance.

deprecated
since

3.1.4

deprecated

4.0 Use the joomla/twitter package via Composer instead

package

Joomla.Platform

Methods

__construct

Constructor.

__construct(\JTwitterOauth $oauth = null, \Joomla\Registry\Registry $options = null, \JHttp $client = null) 
since

3.1.4

Arguments

$oauth

\JTwitterOauthThe oauth client.

$options

\Joomla\Registry\RegistryTwitter options object.

$client

\JHttpThe HTTP client object.

__get

Magic method to lazily create API objects

__get(string $name) : \JTwitterObject
since

3.1.4

throws

\InvalidArgumentException

Arguments

$name

stringName of property to retrieve

Response

\JTwitterObjectTwitter API object (statuses, users, favorites, etc.).

getOption

Get an option from the JTwitter instance.

getOption(string $key) : mixed
since

3.1.4

Arguments

$key

stringThe name of the option to get.

Response

mixedThe option value.

setOption

Set an option for the JTwitter instance.

setOption(string $key, mixed $value) : \JTwitter
since

3.1.4

Arguments

$key

stringThe name of the option to set.

$value

mixedThe option value to set.

Response

\JTwitterThis object for method chaining.

Properties

options

Options for the JTwitter object.

since

3.1.4

Type(s)

\Joomla\Registry\Registry

client

The HTTP client object to use in sending HTTP requests.

since

3.1.4

Type(s)

\JHttp

oauth

The OAuth client.

since

3.1.4

Type(s)

\JTwitterOAuth

friends

Twitter API object for friends.

since

3.1.4

Type(s)

\JTwitterFriends

users

Twitter API object for users.

since

3.1.4

Type(s)

\JTwitterUsers

help

Twitter API object for help.

since

3.1.4

Type(s)

\JTwitterHelp

statuses

Twitter API object for statuses.

since

3.1.4

Type(s)

\JTwitterStatuses

favorites

Twitter API object for favorites.

since

3.1.4

Type(s)

\JTwitterFavorites

directMessages

Twitter API object for direct messages.

since

3.1.4

Type(s)

\JTwitterDirectMessages

lists

Twitter API object for lists.

since

3.1.4

Type(s)

\JTwitterLists

places

Twitter API object for places & geo.

since

3.1.4

Type(s)

\JTwitterPlaces

block

Twitter API object for block.

since

3.1.4

Type(s)

\JTwitterBlock

profile

Twitter API object for profile.

since

3.1.4

Type(s)

\JTwitterProfile