array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'ja', ), 'this' => array ( 0 => 'class.oauth.php', 1 => 'OAuth', ), 'up' => array ( 0 => 'book.oauth.php', 1 => 'OAuth', ), 'prev' => array ( 0 => 'function.oauth-urlencode.php', 1 => 'oauth_urlencode', ), 'next' => array ( 0 => 'oauth.construct.php', 1 => 'OAuth::__construct', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'ja', 'path' => 'reference/oauth/oauth.xml', ), 'extra_header_links' => array ( 'rel' => 'alternate', 'href' => '/manual/en/feeds/class.oauth.atom', 'type' => 'application/atom+xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PECL OAuth >= 0.99.1)
OAuth 拡張モジュールは、データプロバイダとやりとりするためのシンプルなインターフェイスを提供します。 OAuth HTTP 仕様を用いることで、プライベートなリソースを保護します。
$consumer_key
,$consumer_secret
,$signature_method
= OAUTH_SIG_METHOD_HMACSHA1
,$auth_type
= 0$protected_resource_url
,$extra_parameters
= ?,$http_method
= ?,$http_headers
= ?$http_method
, string $url
, mixed $extra_parameters
= ?): string|false$access_token_url
, string $verifier_token
= ?, string $http_method
= ?): array$http_method
, string $url
, mixed $extra_parameters
= ?): string|false$request_token_url
, string $callback_url
= ?, string $http_method
= ?): array