Twitter

Joomla Framework class for interacting with a Twitter API instance.

deprecated
since

1.0

deprecated

The joomla/twitter package is deprecated

Methods

__construct

Constructor.

__construct(\Joomla\Twitter\OAuth $oauth = null, array $options = array(), \Joomla\Http\Http $client = null) 
since

1.0

Arguments

$oauth

\Joomla\Twitter\OAuthThe oauth client.

$options

arrayTwitter options array.

$client

\Joomla\Http\HttpThe HTTP client object.

__get

Magic method to lazily create API objects

__get(string $name) : \Joomla\Twitter\AbstractTwitterObject
since

1.0

throws

\InvalidArgumentException

Arguments

$name

stringName of property to retrieve

Response

\Joomla\Twitter\AbstractTwitterObjectTwitter API object (statuses, users, favorites, etc.).

getOption

Get an option from the Twitter instance.

getOption(string $key) : mixed
since

1.0

Arguments

$key

stringThe name of the option to get.

Response

mixedThe option value.

setOption

Set an option for the Twitter instance.

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

1.0

Arguments

$key

stringThe name of the option to set.

$value

mixedThe option value to set.

Response

\Joomla\Twitter\TwitterThis object for method chaining.

Properties

options

Options for the Twitter object.

since

1.0

Type(s)

array

client

The HTTP client object to use in sending HTTP requests.

since

1.0

Type(s)

\Joomla\Http\Http

oauth

The OAuth client.

since

1.0

Type(s)

\Joomla\Twitter\OAuth

friends

Twitter API object for friends.

since

1.0

Type(s)

\Joomla\Twitter\Friends

followers

Twitter API object for followers

since

1.0

Type(s)

\Joomla\Twitter\Followers

users

Twitter API object for users.

since

1.0

Type(s)

\Joomla\Twitter\Users

help

Twitter API object for help.

since

1.0

Type(s)

\Joomla\Twitter\Help

statuses

Twitter API object for statuses.

since

1.0

Type(s)

\Joomla\Twitter\Statuses

favorites

Twitter API object for favorites.

since

1.0

Type(s)

\Joomla\Twitter\Favorites

directMessages

Twitter API object for direct messages.

since

1.0

Type(s)

\Joomla\Twitter\DirectMessages

lists

Twitter API object for lists.

since

1.0

Type(s)

\Joomla\Twitter\Lists

places

Twitter API object for places & geo.

since

1.0

Type(s)

\Joomla\Twitter\Places

block

Twitter API object for block.

since

1.0

Type(s)

\Joomla\Twitter\Block

profile

Twitter API object for profile.

since

1.0

Type(s)

\Joomla\Twitter\Profile

media

Twitter API object for media.

since

1.0

Type(s)

\Joomla\Twitter\Media

mute

Twitter API object for Mute

since

1.0

Type(s)

\Joomla\Twitter\Mute