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

search for in the

OAuth::setCAPath> <OAuth::getRequestToken
[edit] Last updated: Fri, 17 May 2013

view this page in

OAuth::setAuthType

(PECL OAuth >= 0.99.1)

OAuth::setAuthTypeEstablece el tipo de autorización

Descripción

public mixed OAuth::setAuthType ( int $auth_type )

Establece donde un parámetro OAuthdebería ser pasado.

Parámetros

auth_type

auth_type puede ser una de las siguientes banderas (in orden descendente de preferencia según OAuth 1.0 sección 5.2):

OAUTH_AUTH_TYPE_AUTHORIZATION
Pasa los parámetros OAuth en la cabecera de Authorization HTTP.
OAUTH_AUTH_TYPE_FORM
Anexa los parámetros OAuth al cuerpo de petición HTTP POST.
OAUTH_AUTH_TYPE_URI
Anexa los parámetros OAuth a la URI de petición.
OAUTH_AUTH_TYPE_NONE
Ninguno.

Valores devueltos

Devuelve TRUE si el parámetro es correctamente establecido, de otra manera FALSE (Ejemplo, si un inválido parámetro auth_type es pasado.)

Historial de cambios

Versión Descripción
1.0.0 Antes devolvía NULL en caso de falla, en lugar de FALSE.



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

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