OAuth::setToken
(PECL OAuth >= 0.99.1)
OAuth::setToken — Establece el token y el secreto
Descripción
public bool OAuth::setToken
( string $token
, string $token_secret
)
Establece el token y el secreto para las subsecuentes peticiones.
Parámetros
- token
-
El token OAuth.
- token_secret
-
El secreto OAuth.
Valores devueltos
TRUE
Ejemplos
Example #1 Ejemplo OAuth::setToken()
<?php
$oauth = new OAuth(OAUTH_CONSUMER_KEY,OAUTH_CONSUMER_SECRET);
$oauth->setToken("token","token-secret");
?>
There are no user contributed notes for this page.
