OAuth 类
(PECL OAuth >= 0.99.1)
简介
此 OAuth 扩展提供一个简单接口使用 OAuth HTTP 规范与数据提供者互动,以便保护私有资源。
类摘要
class OAuth
{
public __construct(
string $consumer_key
,
string $consumer_secret
,
string $signature_method
= OAUTH_SIG_METHOD_HMACSHA1
,
int $auth_type
= 0)
public fetch(
string $protected_resource_url
,
array $extra_parameters
= ?,
string $http_method
= ?,
array $http_headers
= ?):
mixed
public getAccessToken(
string $access_token_url
,
string $auth_session_handle
= ?,
string $verifier_token
= ?):
array
public getRequestToken(
string $request_token_url
,
string $callback_url
= ?):
array
public setToken(
string $token
,
string $token_secret
):
bool
}
属性
- debug
-
- sslChecks
-
- debugInfo
-
目录
There are no user contributed notes for this page.