OAuth
PHP Manual

OAuth::setRequestEngine

(PECL OAuth >= 1.0.0)

OAuth::setRequestEngineThe setRequestEngine purpose

说明

public void OAuth::setRequestEngine ( int $reqengine )

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

Warning

本函数还未编写文档,仅有参数列表。

参数

reqengine

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

返回值

没有返回值。

错误/异常

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

范例

Example #1 OAuth::setRequestEngine() example

<?php
$consumer 
= new OAuth();

$consumer->setRequestEngine(OAUTH_REQENGINE_STREAMS);
?>

参见


OAuth
PHP Manual