The signature methods available as of oauth-1.2.3 are:OAUTH_SIG_METHOD_HMACSHA1OAUTH_SIG_METHOD_HMACSHA256OAUTH_SIG_METHOD_RSASHA1OAUTH_SIG_METHOD_PLAINTEXT
(PECL OAuth >= 0.99.1)
OAuth::__construct — Crea un nuevo objeto OAuth
$consumer_key
,$consumer_secret
,$signature_method
= OAUTH_SIG_METHOD_HMACSHA1
,$auth_type
= 0Crea un nuevo objeto OAuth
consumer_key
La clave de lectura proporcionada por el proveedor de servicios.
consumer_secret
El 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_HMACSHA1OAUTH_SIG_METHOD_HMACSHA256OAUTH_SIG_METHOD_RSASHA1OAUTH_SIG_METHOD_PLAINTEXT
The authorization type enums as of oauth-1.2.3 areOAUTH_AUTH_TYPE_AUTHORIZATIONOAUTH_AUTH_TYPE_URIOAUTH_AUTH_TYPE_FORMOAUTH_AUTH_TYPE_NONE