<?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 => 'ru',
  ),
  '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' => 'ru',
    '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">
  Большинство из этих констант затрагивают проблемы, указанные в том числе в
  официальных <a href="http://wiki.oauth.net/ProblemReporting" class="link external">&raquo;&nbsp;сообщениях о проблемах</a>
  OAuth. Однако заметьте, что хотя данные имена констант и имеют схожую схему имён, они
  характерны только для 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 параметры будут помещены в URI запроса.
     <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">
     Константа указывает на использование <em>GET</em> метода для 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">
     Константа указывает на использование <em>POST</em> метода для 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">
     Константа указывает на использование <em>PUT</em> метода для 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">
     Константа указывает на использование <em>HEAD</em> метода для 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">
     Константа указывает на использование <em>DELETE</em> метода для 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> в качестве движка, в противоположность
     константе <strong><code><a href="oauth.constants.php#constant.oauth-reqengine-curl">OAUTH_REQENGINE_CURL</a></code></strong>, использующейся для выбора
     <a href="book.curl.php" class="link">Curl</a>.
    </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> в качестве движка, в противоположность константе
     <strong><code><a href="oauth.constants.php#constant.oauth-reqengine-streams">OAUTH_REQENGINE_STREAMS</a></code></strong>, использующейся для выбора
     <a href="book.stream.php" class="link">потоков PHP</a>.
    </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); ?>