OAuth

Extends \Joomla\OAuth1\Client

Joomla 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

arrayOAuth options array.

$client

\Joomla\Http\HttpThe HTTP client object.

$input

\Joomla\Input\InputThe input object.

$application

\Joomla\Application\AbstractWebApplicationThe application object.

endSession

Ends the session of the authenticating user, returning a null cookie.

endSession() : array
since

1.0

Response

arrayThe decoded JSON response

validateResponse

Method to validate a response.

validateResponse(string $url, \Joomla\Http\Response $response) : void
since

1.0

throws

\DomainException

Arguments

$url

stringThe request URL.

$response

\Joomla\Http\ResponseThe response to validate.

verifyCredentials

Method to verify if the access token is valid by making a request.

verifyCredentials() : boolean
since

1.0

Response

booleanReturns true if the access token is valid and false otherwise.

Properties

options

Options for the Twitter OAuth object.

since

1.0

Type(s)

array