OAuth::setRequestEngine

(PECL OAuth >= 1.0.0)
The setRequestEngine purpose
public void OAuth::setRequestEngine ( int $reqengine )

Sets the Request Engine, that will be sending the HTTP requests.

Parameters:
reqengine

The desired request engine. Set to OAUTH_REQENGINE_STREAMS to use PHP Streams, or OAUTH_REQENGINE_CURL to use Curl.

Returns:

No value is returned.

This function is currently not documented; only its argument list is available.

Exception:

Emits an OAuthException exception if an invalid request engine is chosen.

Examples:
OAuth::setRequestEngine() example
<?php
$consumer = new OAuth();

$consumer->setRequestEngine(OAUTH_REQENGINE_STREAMS);
?>

See also:

Curl -

PHP streams -

OAuthException -

doc_php
2016-02-24 16:14:05
Comments
Leave a Comment

Please login to continue.