public function __construct($data_store) { parent::__construct($data_store); $hmac_method = new OAuthSignatureMethod_HMAC_SHA1(); $this->add_signature_method($hmac_method); $this->timestamp_threshold = 300; // a token (in requestToken) expires before 300 secondes }
function __construct($consumer_key, $nonce, $timestamp, $signature_method, $signature, $token) { $this->setParam('oauth_token', $token, true); $this->setParam('oauth_consumer_key', $consumer_key, true); $this->setParam('oauth_nonce', $nonce, true); $this->setParam('oauth_timestamp', $timestamp, true); $this->setParam('oauth_signature_method', $signature_method, true); $this->setParam('oauth_signature', $signature, true); parent::__construct(); }
function __construct() { parent::__construct(new FKOAuthDataStore()); $this->add_signature_method(new OAuthSignatureMethod_PLAINTEXT()); $this->add_signature_method(new OAuthSignatureMethod_HMAC_SHA1()); }
/** * constructor to set the signatures */ public function __construct() { $this->add_signature_method(new OAuthSignatureMethod_HMAC_SHA1()); parent::__construct(new OAuthSymfonyStore()); }
public function __construct($data_store) { parent::__construct($data_store); $this->add_signature_method(new OAuthSignatureMethod_HMAC_SHA1()); }