CakeFest 2024: The Official CakePHP Conference

OAuth::setToken

(PECL OAuth >= 0.99.1)

OAuth::setTokenConfigure le token et le secret

Description

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

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

true

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

User Contributed Notes

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