i am trying to generate HMAC-SHA1 Signature for Oauth 1.0a
I am trying to make a function that generate HMAC-SHA1 signature but getting an error (invalid_signature) My source code is public function generateSignature($request, $timestamp, $nonce, $signatureMethod, $version, $consumerKey, $consumerSecret) { $base = $request[‘method’] . “&” . rawurlencode($request[‘url’]) . “&” . rawurlencode(“oauth_consumer_key=” . rawurlencode($consumerKey) . “&oauth_nonce=” . rawurlencode($nonce) . “&oauth_signature_method=” . rawurlencode($signatureMethod) . “&oauth_timestamp=” . rawurlencode($timestamp) … Read more