Sophie

Sophie

distrib > Mageia > 4 > x86_64 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 9970

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>Create a new OAuth object</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.oauth.html">OAuth</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oauth.destruct.html">OAuth::__destruct</a></div>
 <div class="up"><a href="class.oauth.html">OAuth</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="oauth.construct" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">OAuth::__construct</h1>
  <p class="verinfo">(PECL OAuth &gt;= 0.99.1)</p><p class="refpurpose"><span class="refname">OAuth::__construct</span> &mdash; <span class="dc-title">Create a new OAuth object</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-oauth.construct-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="modifier">public</span>  <span class="methodname"><strong>OAuth::__construct</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$consumer_key</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$consumer_secret</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$signature_method</code><span class="initializer"> = <strong><code>OAUTH_SIG_METHOD_HMACSHA1</code></strong></span></span>
   [, <span class="methodparam"><span class="type">int</span> <code class="parameter">$auth_type</code><span class="initializer"> = 0</span></span>
  ]] )</div>

  <p class="para rdfs-comment">
   Creates a new OAuth object
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-oauth.construct-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">consumer_key</code></em></span>
     <dd>

      <p class="para">
       The consumer key provided by the service provider.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">consumer_secret</code></em></span>
     <dd>

      <p class="para">
       The consumer secret provided by the service provider.
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">signature_method</code></em></span>
     <dd>

      <p class="para">
       This optional parameter defines which signature method to use, by default it is <strong><code>OAUTH_SIG_METHOD_HMACSHA1</code></strong> (HMAC-SHA1).
      </p>
     </dd>

    </dt>

    <dt>

     <span class="term"><em><code class="parameter">auth_type</code></em></span>
     <dd>

      <p class="para">
       This optional parameter defines how to pass the OAuth parameters
       to a consumer, by default it is
       <strong><code>OAUTH_AUTH_TYPE_AUTHORIZATION</code></strong> (in the 
       <em>Authorization</em> header).
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="class.oauth.html">OAuth</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="oauth.destruct.html">OAuth::__destruct</a></div>
 <div class="up"><a href="class.oauth.html">OAuth</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>