PHP Class Horde_Service_Twitter_Auth_Oauth, horde

Basically implements Horde_Oauth_Client and passes the calls along to the protected oauth object. Copyright 2009-2016 Horde LLC (http://www.horde.org/)
Author: Michael J. Rubinsky ([email protected])
Inheritance: extends Horde_Service_Twitter_Auth
Mostra file Open project: horde/horde

Protected Properties

Property Type Description
$_token Horde_OAuth_Token

Public Methods

Method Description
__construct ( Horde_OAuth_Consumer $oauth )
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.
getRequestToken ( array $params = [] ) : Horde_OAuth_Token Obtain the OAuth request token
getUserAuthorizationUrl ( Horde_Oauth_Token $requestToken ) : string Obtain the URL used to get an authorization token.
setToken ( Horde_OAuth_Token $token ) Set the access token

Method Details

__construct() public method

public __construct ( Horde_OAuth_Consumer $oauth )
$oauth Horde_OAuth_Consumer

getAccessToken() public method

Obtain the access token. This is the token that should be persisted to storage.
public getAccessToken ( Horde_Controller_Request_Http $request, string $requestSecret = null ) : Horde_Oauth_Token
$request Horde_Controller_Request_Http
$requestSecret string The token secret returned by Twitter after the user authorizes the application.
return Horde_Oauth_Token

getRequestToken() public method

Obtain the OAuth request token
public getRequestToken ( array $params = [] ) : Horde_OAuth_Token
$params array
return Horde_OAuth_Token The request token

getUserAuthorizationUrl() public method

Obtain the URL used to get an authorization token.
public getUserAuthorizationUrl ( Horde_Oauth_Token $requestToken ) : string
$requestToken Horde_Oauth_Token The request token
return string The Url

setToken() public method

Set the access token
public setToken ( Horde_OAuth_Token $token )
$token Horde_OAuth_Token

Property Details

$_token protected_oe property

protected Horde_OAuth_Token $_token
return Horde_OAuth_Token