OAuth::setToken
PHP function
Edit on GitHub ✎
(PECL OAuth >= 0.99.1)
Sets the token and secret
Description
OAuth::setToken(string $token, string $token_secret): bool
Set the token and secret for subsequent requests.
Parameters
tokenThe OAuth token.
token_secretThe OAuth token secret.
Return Values
true
Examples
OAuth::setToken() example
php
<?php
$oauth = new OAuth(OAUTH_CONSUMER_KEY,OAUTH_CONSUMER_SECRET);
$oauth->setToken("token","token-secret");
?>