The signature methods available as of oauth-1.2.3 are:
OAUTH_SIG_METHOD_HMACSHA1
OAUTH_SIG_METHOD_HMACSHA256
OAUTH_SIG_METHOD_RSASHA1
OAUTH_SIG_METHOD_PLAINTEXT
(PECL OAuth >= 0.99.1)
OAuth::__construct — Crea un nuevo objeto OAuth
$consumer_key
, string $consumer_secret
[, string $signature_method = OAUTH_SIG_METHOD_HMACSHA1
[, int $auth_type = 0
]] )Crea un nuevo objeto OAuth
consumer_keyLa clave de lectura proporcionada por el proveedor de servicios.
consumer_secretEl secreto de lectura proporcionada por el proveedor de servicios.
signature_method
Este parámetro es opcional define cual método usar, por omisión es OAUTH_SIG_METHOD_HMACSHA1 (HMAC-SHA1).
auth_type
Este parámetro es opcional define como pasar los parámetros OAuth
al lector, por omisión es
OAUTH_AUTH_TYPE_AUTHORIZATION (en la cabecerá
Authorization).
The signature methods available as of oauth-1.2.3 are:
OAUTH_SIG_METHOD_HMACSHA1
OAUTH_SIG_METHOD_HMACSHA256
OAUTH_SIG_METHOD_RSASHA1
OAUTH_SIG_METHOD_PLAINTEXT
The authorization type enums as of oauth-1.2.3 are
OAUTH_AUTH_TYPE_AUTHORIZATION
OAUTH_AUTH_TYPE_URI
OAUTH_AUTH_TYPE_FORM
OAUTH_AUTH_TYPE_NONE