CakeFest 2024: The Official CakePHP Conference

OAuth::setToken

(PECL OAuth >= 0.99.1)

OAuth::setTokenEstablece el token y el secreto

Descripción

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

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

Ejemplo #1 Ejemplo 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