private function getOAuthHeader($httpMethod, $requestURL, $tokenType = 1) { $oAuthHeaderValues = array("oauth_consumer_key" => $this->consumerKey, "oauth_nonce" => $this->getOAuthNonce(), "oauth_signature_method" => "HMAC-SHA1", "oauth_timestamp" => mktime(), "oauth_version" => "1.0"); /* if($tokenType > 0) // Its not a request Request Token $oAuthHeaderValues["oauth_token"] = $this->requestToken; */ if (strlen($this->requestToken) > 0) { $oAuthHeaderValues["oauth_token"] = $this->requestToken; } $oAuthHeaderValues["oauth_signature"] = RequestSigner::buildSignature($this->consumerSecret, $this->tokenSecret, $httpMethod, $requestURL, $oAuthHeaderValues, $this->logInfo); $oauthHeader = $this->buildOAuthHeader($oAuthHeaderValues); return sprintf("Authorization: %s", $oauthHeader); }