protected function generateOauthSignature($parameters)
    {
        $baseRequestUri = \rawurlencode($this->url);

        // Extract filters.
        $parameters = $this->processFilters($parameters);

        // Normalize parameter key/values and sort them.
        $parameters = $this->normalizeParameters($parameters);
        \uksort($parameters, 'strcmp');

        // Set query string.
        $queryString  = \implode('%26', $this->joinWithEqualsSign($parameters)); // Join with ampersand.
        $stringToSign = $this->method . '&' . $baseRequestUri . '&' . $queryString;
        $secret       = $this->getSecret();

        return \base64_encode(\hash_hmac(self::HASH_ALGORITHM, $stringToSign, $secret, true));
    }
protected function generateOauthSignature($parameters)
    {
        $baseRequestUri = \rawurlencode($this->url);

        // Extract filters.
        $parameters = $this->processFilters($parameters);

        // Normalize parameter key/values and sort them.
        $parameters = $this->normalizeParameters($parameters);
        \uksort($parameters, 'strcmp');

        // Set query string.
        $queryString  = \implode('%26', $this->joinWithEqualsSign($parameters)); // Join with ampersand.
        $stringToSign = $this->method . '&' . $baseRequestUri . '&' . $queryString;
        $secret       = $this->getSecret();

        return \base64_encode(\hash_hmac(self::HASH_ALGORITHM, $stringToSign, $secret, true));
    }
protected function generateOauthSignature ( $ parameters ) { $ baseRequestUri = \ rawurlencode ( $ this -> url ) ; // Extract filters. $ parameters = $ this -> processFilters ( $ parameters ) ; // Normalize parameter key/values and sort them. $ parameters = $ this -> normalizeParameters ( $ parameters ) ; \ uksort ( $ parameters , 'strcmp' ) ; // Set query string. $ queryString = \ implode ( '%26' , $ this -> joinWithEqualsSign ( $ parameters ) ) ; // Join with ampersand. $ stringToSign = $ this -> method . '&' . $ baseRequestUri . '&' . $ queryString ; $ secret = $ this -> getSecret ( ) ; return \ base64_encode ( \ hash_hmac ( self :: HASH_ALGORITHM , $ stringToSign , $ secret , true ) ) ; }
Generate oAuth1.0 signature.

@param array $parameters Request parameters including oauth.

@return string
Generate oAuth1 . 0 signature .