class JTwitter

Joomla Platform class for interacting with a Twitter API instance.

Methods

__construct( JTwitterOAuth $oauth = null, Registry $options = null, JHttp $client = null)

Constructor.

__get( string $name)

Magic method to lazily create API objects

mixed
getOption( string $key)

Get an option from the JTwitter instance.

setOption( string $key, mixed $value)

Set an option for the JTwitter instance.

Details

__construct( JTwitterOAuth $oauth = null, Registry $options = null, JHttp $client = null)

Constructor.

Parameters

JTwitterOAuth $oauth The oauth client.
Registry $options Twitter options object.
JHttp $client The HTTP client object.

JTwitterObject __get( string $name)

Magic method to lazily create API objects

Parameters

string $name Name of property to retrieve

Return Value

JTwitterObject Twitter API object (statuses, users, favorites, etc.).

Exceptions

InvalidArgumentException

mixed getOption( string $key)

Get an option from the JTwitter instance.

Parameters

string $key The name of the option to get.

Return Value

mixed The option value.

JTwitter setOption( string $key, mixed $value)

Set an option for the JTwitter instance.

Parameters

string $key The name of the option to set.
mixed $value The option value to set.

Return Value

JTwitter This object for method chaining.