<?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 => 'fr',
  ),
  'this' => 
  array (
    0 => 'oauth.constants.php',
    1 => 'Constantes pr&eacute;-d&eacute;finies',
    2 => 'Constantes pr&eacute;-d&eacute;finies',
  ),
  'up' => 
  array (
    0 => 'book.oauth.php',
    1 => 'OAuth',
  ),
  'prev' => 
  array (
    0 => 'oauth.installation.php',
    1 => 'Installation',
  ),
  'next' => 
  array (
    0 => 'oauth.examples.php',
    1 => 'Exemples',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'fr',
    '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">Constantes pré-définies</h1>

 <p class="simpara">Ces constantes sont définies par cette
extension, et ne sont disponibles que si cette extension a été compilée avec
PHP, ou bien chargée au moment de l&#039;exécution.</p>
 <p class="simpara">
  La plupart de ces constantes impliquent des problèmes décrits dans la documentation
  officielle de <a href="http://wiki.oauth.net/ProblemReporting" class="link external">&raquo;&nbsp;rapport de problèmes</a>
  d&#039;OAuth. Il est à noter cependant que les noms des constantes sont spécifiques à PHP, malgré
  le fait que le schéma de nommage soit similaire.
 </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">
     Méthode de signature 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">
     Méthode de signature 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">
     Méthode de signature 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">
     Cette constante représente l&#039;en-tête <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">
     Cette constante indique une requête <code class="literal">NoAuth OAuth</code>.
    </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">
     Cette constante représente les paramètres OAuth dans l&#039;<abbr title="Uniform Resource Identifier">URI</abbr> de requête.
    </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">
     Cette constante représente les paramètres OAuth comme une partie
     du corps 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">
     Utilise la méthode <em>GET</em> pour la requête 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">
     Utilise la méthode <em>POST</em> pour la requête 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">
     Utilise la méthode <em>PUT</em> pour la requête 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">
     Utilise la méthode <em>HEAD</em> pour la requête 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">
     Utilise la méthode <em>DELETE</em> pour la requête 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">
     Utilisé par la méthode <span class="methodname"><a href="oauth.setrequestengine.php" class="methodname">Oauth::setRequestEngine()</a></span>
     pour définir le moteur de <a href="book.stream.php" class="link">flux PHP</a>,
     à l&#039;opposé de <strong><code><a href="oauth.constants.php#constant.oauth-reqengine-curl">OAUTH_REQENGINE_CURL</a></code></strong> pour
     <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">
     Utilisé par la méthode <span class="methodname"><a href="oauth.setrequestengine.php" class="methodname">Oauth::setRequestEngine()</a></span>
     pour définir le moteur de <a href="book.curl.php" class="link">Curl</a>,
     à l&#039;opposé de <strong><code><a href="oauth.constants.php#constant.oauth-reqengine-streams">OAUTH_REQENGINE_STREAMS</a></code></strong> pour
     les <a href="book.stream.php" class="link">flux 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">
     La vie est belle.
    </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">
      La valeur <em>oauth_nonce</em> a été utilisée pour une
     précédente requête, et ne peut être utilisée maintenant.
    </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">
     La valeur <em>oauth_timestamp</em> n&#039;est pas acceptée
     par le prestataire de service. Dans ce cas, la réponse devra aussi contenir
     le paramètre <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> est temporairement inacceptable
     par le prestataire de service. Par exemple, le prestataire de service
     limite le débit du consommateur.
    </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">
     La clé du consommateur a été refusée.
    </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> est invalide car elle ne correspond
     pas à la signature calculée par le prestataire de service.
    </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> a été consommé. Il ne peut plus être utilisé
     car il a déjà été utilisé dans une ou plusieurs précédentes requêtes.
    </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> a expiré.
    </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> a été révoqué et ne pourra plus être accepté.
    </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> n&#039;a pas été acceptée par le prestataire de
     service. La raison est inconnue, mais il se peut que le jeton n&#039;ait jamais
     été utilisé, ait déjà été consommé, ait expiré et/ou ait été oublié par le
     prestataire de service.
    </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> est incorrect.
    </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">
     Un paramètre requis n&#039;a pas été reçu. Dans ce cas, la réponse devra également
     contenir le paramètre <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> n&#039;a pas été accepté par le prestataire
     de service.
    </span>
   </dd>
  
 </dl>
</div>
<?php manual_footer($setup); ?>