(PECL OAuth >= 0.99.1)
The OAuth extension provides a simple interface to interact with data providers using the OAuth HTTP specification to protect private resources.
$consumer_key
,$consumer_secret
,$signature_method
= OAUTH_SIG_METHOD_HMACSHA1
,$auth_type
= 0$protected_resource_url
,$extra_parameters
= ?,$http_method
= ?,$http_headers
= ?$http_method
, string $url
, mixed $extra_parameters
= ?): string|false$access_token_url
,$auth_session_handle
= ?,$verifier_token
= ?,$http_method
= ?$http_method
, string $url
, mixed $extra_parameters
= ?): string|false$request_token_url
, string $callback_url
= ?, string $http_method
= ?): array