OAUTH(3) 1 OAUTH(3)
The OAuth class
INTRODUCTION
The OAuth extension provides a simple interface to interact with data providers using the OAuth HTTP specification to protect private
resources.
CLASS SYNOPSIS
OAuth
OAuth
Properties
o public$debug
o public$sslChecks
o public$debugInfo
Methods
o public OAuth::__construct OAUTH_SIG_METHOD_HMACSHA1 (string $consumer_key, string $consumer_secret, [string $signature_method], [int
$auth_type])
o public void OAuth::__destruct (void )
o public bool OAuth::disableDebug (void )
o public bool OAuth::disableRedirects (void )
o public bool OAuth::disableSSLChecks (void )
o public bool OAuth::enableDebug (void )
o public bool OAuth::enableRedirects (void )
o public bool OAuth::enableSSLChecks (void )
o public mixed OAuth::fetch (string $protected_resource_url, [array $extra_parameters], [string $http_method], [array $http_headers])
o public string OAuth::generateSignature (string $http_method, string $url, [mixed $extra_parameters])
o public array OAuth::getAccessToken (string $access_token_url, [string $auth_session_handle], [string $verifier_token], [string
$http_method])
o public array OAuth::getCAPath (void )
o public string OAuth::getLastResponse (void )
o public string OAuth::getLastResponseHeaders (void )
o public array OAuth::getLastResponseInfo (void )
o public string OAuth::getRequestHeader (string $http_method, string $url, [mixed $extra_parameters])
o public array OAuth::getRequestToken (string $request_token_url, [string $callback_url], [string $http_method])
o public mixed OAuth::setAuthType (int $auth_type)
o public mixed OAuth::setCAPath ([string $ca_path], [string $ca_info])
o public mixed OAuth::setNonce (string $nonce)
o public void OAuth::setRequestEngine (int $reqengine)
o public mixed OAuth::setRSACertificate (string $cert)
o public bool OAuth::setSSLChecks (int $sslcheck)
o public mixed OAuth::setTimestamp (string $timestamp)
o public bool OAuth::setToken (string $token, string $token_secret)
o public bool OAuth::setVersion (string $version)
PROPERTIES
o $debug
-
o $sslChecks
-
o $debugInfo
-
PHP Documentation Group OAUTH(3)