Example #1
0
 public function __construct($tokenUrl, $consumerKey, $consumerSecret, $token, $verifier, $signatureMethod = SignatureMethods::SIGNATURE_HMAC_SHA1)
 {
     parent::__construct(Method::METHOD_POST, $tokenUrl, $consumerKey, $consumerSecret, $signatureMethod);
     $this->token = $token;
     $this->verifier = $verifier;
     $this->prepare();
 }
 public function __construct($requestUrl, $callbackUrl, $consumerKey, $consumerSecret, $signatureMethod = SignatureMethods::SIGNATURE_HMAC_SHA1)
 {
     parent::__construct(Method::METHOD_POST, $requestUrl, $consumerKey, $consumerSecret, $signatureMethod);
     $this->callbackUrl = $callbackUrl;
     $this->prepare();
 }