downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

OAuth::setVersion> <OAuth::setNonce
Last updated: Fri, 14 Aug 2009

view this page in

OAuth::setToken

(PECL OAuth >= 0.99.1)

OAuth::setTokenConfigure le token et le secret

Description

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

Configure le token et le secret pour les prochains appels.

Liste de paramètres

token

Le token OAuth.

token_secret

Le secret OAuth.

Valeurs de retour

Cette fonction retourne TRUE en cas de succès, FALSE en cas d'échec.

Exemples

Exemple #1 L'exemple OAuth::setToken()

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



add a note add a note User Contributed Notes
OAuth::setToken
There are no user contributed notes for this page.

OAuth::setVersion> <OAuth::setNonce
Last updated: Fri, 14 Aug 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites