\JTwitterOAuth
Joomla Platform class for generating Twitter API access token.
Synopsis
class JTwitterOAuth
extends JOAuth1Client
{
- // members
- protected JRegistry $options;
- // Inherited members from JOAuth1Client
- protected JRegistry $options;
- protected $token;
- protected JHttp $client;
- protected JInput $input;
- protected JApplicationWeb $application;
- protected $version;
- // methods
- public void __construct()
- public boolean verifyCredentials()
- public array endSession()
- public void validateResponse()
- // Inherited methods from JOAuth1Client
- public void __construct()
- public array authenticate()
- public JHttpResponse oauthRequest()
- public abstract void validateResponse()
- public string toUrl()
- public string safeEncode()
- public static string generateNonce()
- public abstract array verifyCredentials()
- public mixed getOption()
- public JOAuth1Client setOption()
- public array getToken()
- public JOAuth1Client setToken()
Hierarchy
Extends
Members
protected
- $application — JApplicationWeb
- $client — JHttp
- $input — JInput
- $options — JRegistry
- $options — JRegistry
- $token — array
- $version — string
Methods
public
- __construct() — Constructor.
- endSession() — Ends the session of the authenticating user, returning a null cookie.
- validateResponse() — Method to validate a response.
- verifyCredentials() — Method to verify if the access token is valid by making a request.
Inherited from JOAuth1Client
public
- authenticate() — Method to for the oauth flow.
- generateNonce() — Method used to generate the current nonce.
- getOption() — Get an option from the JOauth1aClient instance.
- getToken() — Get the oauth token key or secret.
- oauthRequest() — Method used to make an OAuth request.
- safeEncode() — Encodes the string or array passed in a way compatible with OAuth.
- setOption() — Set an option for the JOauth1aClient instance.
- setToken() — Set the oauth token.
- toUrl() — Method to create the URL formed string with the parameters.
- validateResponse() — Method to validate a response.
- verifyCredentials() — Returns an HTTP 200 OK response code and a representation of the requesting user if authentication was successful; returns a 401 status code and an error message if not.