« OAuth
OAuth::__destruct »

OAuth::__construct

(PECL OAuth >= 0.99.1)

OAuth::__construct — 新しい OAuth オブジェクトを作成する

説明

public function 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 ヘッダを使用する) です。

関連キーワード:
OAuth   consumer   construct   secret   signature   method   auth   type   サービス   プロバイダ   提供   destruct   署名   方式   コンシューマ   方法   Authorization   ヘッダ
関連する関数・ページ:
oauth.setversion   oauth.destruct   oauth.setauthtype   oauth.getcapath   class.oauth   oauth.setcapath