JTwitter
Joomla Platform class for interacting with a Twitter API instance.
since |
3.1.4 |
---|---|
deprecated |
4.0 Use the |
package |
Joomla.Platform |
Methods
__construct
Constructor.
__construct(\JTwitterOauth $oauth = null, \Joomla\Registry\Registry $options = null, \JHttp $client = null)
since |
3.1.4 |
---|
Arguments
- $oauth
\JTwitterOauth
The oauth client.- $options
\Joomla\Registry\Registry
Twitter options object.- $client
\JHttp
The HTTP client object.
__get
Magic method to lazily create API objects
__get(string $name) : \JTwitterObject
since |
3.1.4 |
---|---|
throws |
|
Arguments
- $name
string
Name of property to retrieve
Response
\JTwitterObject
Twitter API object (statuses, users, favorites, etc.).
getOption
Get an option from the JTwitter instance.
getOption(string $key) : mixed
since |
3.1.4 |
---|
Arguments
- $key
string
The name of the option to get.
Response
mixed
The option value.
setOption
Set an option for the JTwitter instance.
setOption(string $key, mixed $value) : \JTwitter
since |
3.1.4 |
---|
Arguments
- $key
string
The name of the option to set.- $value
mixed
The option value to set.
Response
\JTwitter
This object for method chaining.
Properties
client
The HTTP client object to use in sending HTTP requests.
since |
3.1.4 |
---|
Type(s)
\JHttp
search
Twitter API object for search.
since |
3.1.4 |
---|
Type(s)
\JTwitterSearch
directMessages
Twitter API object for direct messages.
since |
3.1.4 |
---|
Type(s)
\JTwitterDirectMessages