\Horde_Service_Twitter_Auth_Oauth

Horde_Service_Twitter_Auth class to abstract all auth related tasks

Basically implements Horde_Oauth_Client and passes the calls along to the protected oauth object.

Copyright 2009-2017 Horde LLC (http://www.horde.org/)

Summary

Methods
Properties
Constants
setTwitter()
__get()
__construct()
getUserAuthorizationUrl()
setToken()
getAccessToken()
getRequestToken()
No public properties found
No constants found
No protected methods found
$_twitter
$_config
$_token
N/A
No private methods found
No private properties found
N/A

Properties

$_config

$_config : 

Configuration parameters

Type

$_token

$_token : \Horde_OAuth_Token

Type

\Horde_OAuth_Token

Methods

__get()

__get(string  $value) : mixed

Getter

Parameters

string $value

Throws

\Horde_Service_Twitter_Exception

Returns

mixed —

The value of the requested property.

__construct()

__construct(\Horde_OAuth_Consumer  $oauth) 

Parameters

\Horde_OAuth_Consumer $oauth

getUserAuthorizationUrl()

getUserAuthorizationUrl(\Horde_Oauth_Token  $requestToken) : string

Obtain the URL used to get an authorization token.

Parameters

\Horde_Oauth_Token $requestToken

The request token

Returns

string —

The Url

setToken()

setToken(\Horde_OAuth_Token  $token) 

Set the access token

Parameters

\Horde_OAuth_Token $token

getAccessToken()

getAccessToken(\Horde_Controller_Request_Http  $request, string  $requestSecret = null) : \Horde_Oauth_Token

Obtain the access token. This is the token that should be persisted to storage.

Parameters

\Horde_Controller_Request_Http $request
string $requestSecret

The token secret returned by Twitter after the user authorizes the application.

Throws

\Horde_Service_Twitter_Exception

Returns

\Horde_Oauth_Token

getRequestToken()

getRequestToken(array  $params = array()) : \Horde_OAuth_Token

Obtain the OAuth request token

Parameters

array $params

Throws

\Horde_Service_Twitter_Exception

Returns

\Horde_OAuth_Token —

The request token