PHP Class Horde_Oauth_Consumer, horde

Author: Chuck Hagenbuch ([email protected])
Afficher le fichier Open project: horde/horde

Protected Properties

Свойство Type Description
$_config

Méthodes publiques

Méthode Description
__construct ( array $config ) : Horde_Oauth_Consumer Const'r for consumer.
__get ( $name )
getAccessToken ( Horde_Oauth_Token $token, array $params = [] ) : unknown_type Obtain an access token from a request token
getRequestToken ( array $params = [] ) : Horde_Oauth_Token Obtain an unprivileged request token
getUserAuthorizationUrl ( Horde_Oauth_Token $token ) : string Get the user authorization url used to request user authorization

Method Details

__construct() public méthode

Const'r for consumer.
public __construct ( array $config ) : Horde_Oauth_Consumer
$config array Configuration values:
  'key'               - Consumer key
  'secret'            - Consumer secret
  'requestTokenUrl'   - The request token URL
  'authorizeTokenUrl' - The authorize URL
  'accessTokenUrl'    = To obtain an access token
  'signatureMethod    - Horde_Oauth_SignatureMethod object
Résultat Horde_Oauth_Consumer

__get() public méthode

public __get ( $name )

getAccessToken() public méthode

Obtain an access token from a request token
public getAccessToken ( Horde_Oauth_Token $token, array $params = [] ) : unknown_type
$token Horde_Oauth_Token Open auth token containing the oauth_token returned from provider after authorization and the token secret returned with the original request token.
$params array Any additional parameters for this request
Résultat unknown_type

getRequestToken() public méthode

Obtain an unprivileged request token
public getRequestToken ( array $params = [] ) : Horde_Oauth_Token
$params array Parameter array
Résultat Horde_Oauth_Token The oauth request token

getUserAuthorizationUrl() public méthode

Get the user authorization url used to request user authorization
public getUserAuthorizationUrl ( Horde_Oauth_Token $token ) : string
$token Horde_Oauth_Token the oauth request token
Résultat string The user authorization url string

Property Details

$_config protected_oe property

protected $_config