<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/class.oauth.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'ja',
  ),
  'this' => 
  array (
    0 => 'oauth.construct.php',
    1 => 'OAuth::__construct',
    2 => '新しい OAuth オブジェクトを作成する',
  ),
  'up' => 
  array (
    0 => 'class.oauth.php',
    1 => 'OAuth',
  ),
  'prev' => 
  array (
    0 => 'class.oauth.php',
    1 => 'OAuth',
  ),
  'next' => 
  array (
    0 => 'oauth.destruct.php',
    1 => 'OAuth::__destruct',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'ja',
    'path' => 'reference/oauth/oauth/construct.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<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">新しい OAuth オブジェクトを作成する</span></p>

 </div>

 <div class="refsect1 description" id="refsect1-oauth.construct-description">
  <h3 class="title">説明</h3>
  <div class="constructorsynopsis dc-description">
   <span class="modifier">public</span> <span class="methodname"><strong>OAuth::__construct</strong></span>(<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$consumer_key</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$consumer_secret</code></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$signature_method</code><span class="initializer"> = <strong><code><a href="oauth.constants.php#constant.oauth-sig-method-hmacsha1">OAUTH_SIG_METHOD_HMACSHA1</a></code></strong></span></span>,<br>&nbsp;&nbsp;&nbsp;&nbsp;<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$auth_type</code><span class="initializer"> = 0</span></span><br>)</div>

  <p class="simpara">
   新しい OAuth オブジェクトを作成します。
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-oauth.construct-parameters">
  <h3 class="title">パラメータ</h3>
  <dl>
   
    <dt><code class="parameter">consumer_key</code></dt>
    <dd>
     <span class="simpara">
      サービスプロバイダが提供する consumer key。
     </span>
    </dd>
   
   
    <dt><code class="parameter">consumer_secret</code></dt>
    <dd>
     <span class="simpara">
      サービスプロバイダが提供する consumer secret。
     </span>
    </dd>
   
   
    <dt><code class="parameter">signature_method</code></dt>
    <dd>
     <span class="simpara">
      このオプションのパラメータで、使用する署名方式を定義します。
      デフォルトは <strong><code><a href="oauth.constants.php#constant.oauth-sig-method-hmacsha1">OAUTH_SIG_METHOD_HMACSHA1</a></code></strong> (HMAC-SHA1) です。
     </span>
    </dd>
   
   
    <dt><code class="parameter">auth_type</code></dt>
    <dd>
     <span class="simpara">
      このオプションのパラメータで、OAuth パラメータをコンシューマに渡す方法を定義します。
      デフォルトは <strong><code><a href="oauth.constants.php#constant.oauth-auth-type-authorization">OAUTH_AUTH_TYPE_AUTHORIZATION</a></code></strong>
      (<code class="literal">Authorization</code> ヘッダを使用する) です。
     </span>
    </dd>
   
  </dl>
 </div>


</div><?php manual_footer($setup); ?>