OAuth
Extends \Joomla\OAuth1\ClientJoomla Framework class for generating Twitter API access token.
deprecated
since |
1.0 |
---|---|
deprecated |
The joomla/twitter package is deprecated |
Methods
__construct
Constructor.
__construct(array $options, \Joomla\Http\Http $client, \Joomla\Input\Input $input, \Joomla\Application\AbstractWebApplication $application)
since |
1.0 |
---|
Arguments
- $options
array
OAuth options array.- $client
\Joomla\Http\Http
The HTTP client object.- $input
\Joomla\Input\Input
The input object.- $application
\Joomla\Application\AbstractWebApplication
The application object.
endSession
Ends the session of the authenticating user, returning a null cookie.
endSession() : array
since |
1.0 |
---|
Response
array
The decoded JSON response
validateResponse
Method to validate a response.
validateResponse(string $url, \Joomla\Http\Response $response) : void
since |
1.0 |
---|---|
throws |
|
Arguments
- $url
string
The request URL.- $response
\Joomla\Http\Response
The response to validate.
verifyCredentials
Method to verify if the access token is valid by making a request.
verifyCredentials() : boolean
since |
1.0 |
---|
Response
boolean
Returns true if the access token is valid and false otherwise.
Properties
options
Options for the Twitter OAuth object.
since |
1.0 |
---|
Type(s)
array