OAuth::setToken

(PECL OAuth >= 0.99.1)

OAuth::setTokenDefine o token e o segredo

Descrição

public OAuth::setToken(string $token, string $token_secret): bool

Define o token e o segredo para requisições subsequentes.

Parâmetros

token

O token OAuth.

token_secret

O segredo de token OAuth.

Valor Retornado

true

Exemplos

Exemplo #1 Exemplo de OAuth::setToken()

<?php
$oauth
= new OAuth(OAUTH_CONSUMER_KEY,OAUTH_CONSUMER_SECRET);
$oauth->setToken("token","segredo-token");
?>

add a note add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top