\TwitterService
Synopsis
class TwitterService
{
- // members
- private static $consumer_key;
- private static $consumer_secret;
- private static $oauth_callback;
- // methods
- public TwitterOAuth getClient()
- public string getOAuthCallback()
- public array getOAuthToken()
- public string getAuthoriseUrl()
- public void setSessionOAuthToken()
- public array getSessionOAuthToken()
- public void clearSessionOAuthToken()
- public array|null getAccessToken()
Members
private
- $consumer_key — string
- $consumer_secret — string
- $oauth_callback — string
Methods
public
- clearSessionOAuthToken() — Clears the temporary token from session.
- getAccessToken() — Gets an access token used for making authenticated requests to the Twitter API.
- getAuthoriseUrl() — Gets the login URL for users to authenticate with.
- getClient() — Create a Twitter API interface.
- getOAuthCallback() — Gets the OAuth callback URL.
- getOAuthToken() — Gets a temporary request token to kick off the OAuth flow.
- getSessionOAuthToken() — Gets the temporary request token from session.
- setSessionOAuthToken() — Sets the temporary request token in session.