(PECL OAuth >= 0.99.1)
OAuth::__construct — Create a new OAuth object
$consumer_key,$consumer_secret,$signature_method = OAUTH_SIG_METHOD_HMACSHA1,$auth_type = 0Creates a new OAuth object
consumer_keyThe consumer key provided by the service provider.
consumer_secretThe consumer secret provided by the service provider.
signature_method This optional parameter defines which signature method to use, by default it is OAUTH_SIG_METHOD_HMACSHA1 (HMAC-SHA1).
auth_type This optional parameter defines how to pass the OAuth parameters to a consumer, by default it is OAUTH_AUTH_TYPE_AUTHORIZATION (in the Authorization header).
© 1997–2025 The PHP Documentation Group
Licensed under the Creative Commons Attribution License v3.0 or later.
https://www.php.net/manual/en/oauth.construct.php