<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/book.oauth.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'oauth.constants.php',
    1 => '定義済み定数',
    2 => '定義済み定数',
  ),
  'up' => 
  array (
    0 => 'book.oauth.php',
    1 => 'OAuth',
  ),
  'prev' => 
  array (
    0 => 'oauth.installation.php',
    1 => 'インストール手順',
  ),
  'next' => 
  array (
    0 => 'oauth.examples.php',
    1 => '例',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/oauth/constants.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="oauth.constants" class="appendix">
 <h1 class="title">定義済み定数</h1>

 <p class="simpara">
以下の定数が定義されています。
この関数の拡張モジュールが PHP 組み込みでコンパイルされているか、
実行時に動的にロードされている場合のみ使用可能です。
</p>
 <p class="simpara">
  これらの定数の大半には何らかの問題があります。問題点については OAuth の公式ページにも
  <a href="http://wiki.oauth.net/ProblemReporting" class="link external">&raquo;&nbsp;問題一覧</a> があります。
  ここで扱う定数名は PHP 固有のものですが、命名方式は似ています。
 </p>
 <dl>
  
  
   <dt id="constant.oauth-sig-method-rsasha1">
    <strong><code><a href="oauth.constants.php#constant.oauth-sig-method-rsasha1">OAUTH_SIG_METHOD_RSASHA1</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     OAuth <em>RSA-SHA1</em> 署名方式。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-sig-method-hmacsha1">
    <strong><code><a href="oauth.constants.php#constant.oauth-sig-method-hmacsha1">OAUTH_SIG_METHOD_HMACSHA1</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     OAuth <em>HMAC-SHA1</em> 署名方式。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-sig-method-hmacsha256">
    <strong><code><a href="oauth.constants.php#constant.oauth-sig-method-hmacsha256">OAUTH_SIG_METHOD_HMACSHA256</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     OAuth <em>HMAC-SHA256</em> 署名方式。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-auth-type-authorization">
    <strong><code><a href="oauth.constants.php#constant.oauth-auth-type-authorization">OAUTH_AUTH_TYPE_AUTHORIZATION</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     この定数は、OAuth パラメータを
     <code class="literal">Authorization</code> ヘッダ内に記述することを表します。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-auth-type-none">
    <strong><code><a href="oauth.constants.php#constant.oauth-auth-type-none">OAUTH_AUTH_TYPE_NONE</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     この定数は、NoAuth OAuth リクエストを表します。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-auth-type-uri">
    <strong><code><a href="oauth.constants.php#constant.oauth-auth-type-uri">OAUTH_AUTH_TYPE_URI</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     この定数は、OAuth パラメータをリクエスト <abbr title="Uniform Resource Identifier">URI</abbr> に記述することを表します。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-auth-type-form">
    <strong><code><a href="oauth.constants.php#constant.oauth-auth-type-form">OAUTH_AUTH_TYPE_FORM</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     この定数は、OAuth パラメータを HTTP POST の本文の一部として記述することを表します。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-http-method-get">
    <strong><code><a href="oauth.constants.php#constant.oauth-http-method-get">OAUTH_HTTP_METHOD_GET</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <abbr>GET</abbr> メソッドを OAuth リクエストで使用します。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-http-method-post">
    <strong><code><a href="oauth.constants.php#constant.oauth-http-method-post">OAUTH_HTTP_METHOD_POST</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <abbr>POST</abbr> メソッドを OAuth リクエストで使用します。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-http-method-put">
    <strong><code><a href="oauth.constants.php#constant.oauth-http-method-put">OAUTH_HTTP_METHOD_PUT</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <abbr>PUT</abbr> メソッドを OAuth リクエストで使用します。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-http-method-head">
    <strong><code><a href="oauth.constants.php#constant.oauth-http-method-head">OAUTH_HTTP_METHOD_HEAD</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <abbr>HEAD</abbr> メソッドを OAuth リクエストで使用します。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-http-method-delete">
    <strong><code><a href="oauth.constants.php#constant.oauth-http-method-delete">OAUTH_HTTP_METHOD_DELETE</a></code></strong>
    (<span class="type"><a href="language.types.string.php" class="type string">string</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <abbr>DELETE</abbr> メソッドを OAuth リクエストで使用します。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-reqengine-streams">
    <strong><code><a href="oauth.constants.php#constant.oauth-reqengine-streams">OAUTH_REQENGINE_STREAMS</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="methodname"><a href="oauth.setrequestengine.php" class="methodname">OAuth::setRequestEngine()</a></span> で使用するもので、
     エンジンを <a href="book.stream.php" class="link">PHP ストリーム</a> に設定します。
     <a href="book.curl.php" class="link">Curl</a> を使う場合は
     <strong><code><a href="oauth.constants.php#constant.oauth-reqengine-curl">OAUTH_REQENGINE_CURL</a></code></strong> を用います。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-reqengine-curl">
    <strong><code><a href="oauth.constants.php#constant.oauth-reqengine-curl">OAUTH_REQENGINE_CURL</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <span class="methodname"><a href="oauth.setrequestengine.php" class="methodname">OAuth::setRequestEngine()</a></span> で使用するもので、
     エンジンを <a href="book.curl.php" class="link">Curl</a> に設定します。
     <a href="book.stream.php" class="link">PHP streams</a> を使う場合は
     <strong><code><a href="oauth.constants.php#constant.oauth-reqengine-streams">OAUTH_REQENGINE_STREAMS</a></code></strong> を用います。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-ok">
    <strong><code><a href="oauth.constants.php#constant.oauth-ok">OAUTH_OK</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     無事に生きています。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-bad-nonce">
    <strong><code><a href="oauth.constants.php#constant.oauth-bad-nonce">OAUTH_BAD_NONCE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
      <em>oauth_nonce</em> の値が前のリクエストで使われたものなので、
      このリクエストでは使えません。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-bad-timestamp">
    <strong><code><a href="oauth.constants.php#constant.oauth-bad-timestamp">OAUTH_BAD_TIMESTAMP</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
      <em>oauth_timestamp</em> の値がサービスプロバイダに受け入れられませんでした。
      この場合、レスポンスには <em>oauth_acceptable_timestamps</em>
      パラメータが含まれていなければなりません。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-consumer-key-unknown">
    <strong><code><a href="oauth.constants.php#constant.oauth-consumer-key-unknown">OAUTH_CONSUMER_KEY_UNKNOWN</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <em>oauth_consumer_key</em> が、一時的にサービスプロバイダに受け入れられませんでした。
     プロバイダ側でコンシューマに制限をかけているなどの可能性が考えられます。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-consumer-key-refused">
    <strong><code><a href="oauth.constants.php#constant.oauth-consumer-key-refused">OAUTH_CONSUMER_KEY_REFUSED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     コンシューマキーが拒否されました。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-invalid-signature">
    <strong><code><a href="oauth.constants.php#constant.oauth-invalid-signature">OAUTH_INVALID_SIGNATURE</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
      <em>oauth_signature</em> が無効です。
      サービスプロバイダが算出したシグネチャとマッチしません。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-token-used">
    <strong><code><a href="oauth.constants.php#constant.oauth-token-used">OAUTH_TOKEN_USED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <em>oauth_token</em> が使用済みです。
     これまでのリクエストで既に使用済みであるため、もう使うことはできません。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-token-expired">
    <strong><code><a href="oauth.constants.php#constant.oauth-token-expired">OAUTH_TOKEN_EXPIRED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <em>oauth_token</em> の有効期限が切れました。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-token-revoked">
    <strong><code><a href="oauth.constants.php#constant.oauth-token-revoked">OAUTH_TOKEN_REVOKED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <em>oauth_token</em> が無効になりました。もう使えません。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-token-rejected">
    <strong><code><a href="oauth.constants.php#constant.oauth-token-rejected">OAUTH_TOKEN_REJECTED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <em>oauth_token</em> がサービスプロバイダに受け入れられませんでした。
     理由は不明ですが、
     トークンが発行されていない・すでに使用済みである・プロバイダ側で忘れられてしまった
     といった原因が考えられます。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-verifier-invalid">
    <strong><code><a href="oauth.constants.php#constant.oauth-verifier-invalid">OAUTH_VERIFIER_INVALID</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <em>oauth_verifier</em> が無効です。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-parameter-absent">
    <strong><code><a href="oauth.constants.php#constant.oauth-parameter-absent">OAUTH_PARAMETER_ABSENT</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     必須パラメータが含まれていません。
     この場合、レスポンスには <em>oauth_parameters_absent</em>
     パラメータが含まれていなければなりません。
    </span>
   </dd>
  
  
   <dt id="constant.oauth-signature-method-rejected">
    <strong><code><a href="oauth.constants.php#constant.oauth-signature-method-rejected">OAUTH_SIGNATURE_METHOD_REJECTED</a></code></strong>
    (<span class="type"><a href="language.types.integer.php" class="type int">int</a></span>)
   </dt>
   <dd>
    <span class="simpara">
     <em>oauth_signature_method</em> がサービスプロバイダに受け入れられませんでした。
    </span>
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>