OAuth::__construct
(PECL OAuth >= 0.99.1)
OAuth::__construct — 新しい OAuth オブジェクトを作成する
説明
public OAuth::__construct
( string
$consumer_key
, string $consumer_secret
[, string $signature_method = OAUTH_SIG_METHOD_HMACSHA1
[, int $auth_type = 0
]] )新しい OAuth オブジェクトを作成します。
パラメータ
-
consumer_key -
サービスプロバイダが提供する consumer key。
-
consumer_secret -
サービスプロバイダが提供する consumer secret。
-
signature_method -
このオプションのパラメータで、使用する署名方式を定義します。 デフォルトは
OAUTH_SIG_METHOD_HMACSHA1(HMAC-SHA1) です。 -
auth_type -
このオプションのパラメータで、OAuth パラメータをコンシューマに渡す方法を定義します。 デフォルトは
OAUTH_AUTH_TYPE_AUTHORIZATION(Authorization ヘッダを使用する) です。