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

search for in the

OAuthException> <OAuthProvider::timestampNonceHandler
[edit] Last updated: Fri, 17 May 2013

view this page in

OAuthProvider::tokenHandler

(PECL OAuth >= 1.0.0)

OAuthProvider::tokenHandlerEstablece el manejador callback de tokenHandler

Descripción

public void OAuthProvider::tokenHandler ( callable $callback_function )

Establece el token del callback, que será llamado después con OAuthProvider::callTokenHandler().

Advertencia

Esta función no está documentada actualmente, solamente se encuentra disponible la lista de parámetros.

Parámetros

callback_function

El nombre de la función callable.

Valores devueltos

No devuelve ningún valor.

Ejemplos

Ejemplo #1 Ejemplo del callback OAuthProvider::tokenHandler()

<?php
function tokenHandler($provider) {
    
    if (
$provider->token === 'rejected') {
        return 
OAUTH_TOKEN_REJECTED;
    } elseif (
$provider->token === 'revoked') {
        return 
OAUTH_TOKEN_REVOKED;
    }

    
$provider->token_secret "the_tokens_secret";
    return 
OAUTH_OK;
}
?>

Ver también



add a note add a note User Contributed Notes OAuthProvider::tokenHandler - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | stats | sitemap | contact | advertising | mirror sites