OAuth::setRequestEngine
PHP function
Edit on GitHub ✎
(PECL OAuth >= 1.0.0)
The setRequestEngine purpose
Description
OAuth::setRequestEngine(int $reqengine): void
Sets the Request Engine, that will be sending the HTTP requests.
Func
Parameters
reqengineThe desired request engine. Set to
OAUTH_REQENGINE_STREAMSto use PHP Streams, orOAUTH_REQENGINE_CURLto use Curl.
Return Values
Void
Errors/Exceptions
Emits an OAuthException exception if an invalid request engine is chosen.
Examples
OAuth::setRequestEngine() example
php
<?php
$consumer = new OAuth();
$consumer->setRequestEngine(OAUTH_REQENGINE_STREAMS);
?>See Also
- Curl
- PHP streams
OAuthException