private function getSignature($base, $key)
    {
        switch ($this->sigMethod) {
            case 'PLAINTEXT':
                $signature = $key;
                break;
            case 'HMAC-SHA1':
                $signature = base64_encode(hash_hmac('sha1', $base, $key, true));
                break;
        }
        
        return $signature;
    }
private function getSignature($base, $key)
    {
        switch ($this->sigMethod) {
            case 'PLAINTEXT':
                $signature = $key;
                break;
            case 'HMAC-SHA1':
                $signature = base64_encode(hash_hmac('sha1', $base, $key, true));
                break;
        }
        
        return $signature;
    }
private function getSignature ( $ base , $ key ) { switch ( $ this -> sigMethod ) { case 'PLAINTEXT' : $ signature = $ key ; break ; case 'HMAC-SHA1' : $ signature = base64_encode ( hash_hmac ( 'sha1' , $ base , $ key , true ) ) ; break ; } return $ signature ; }
Generate the oauth_signature for a request
@param string $base Signature base string, used by HMAC-SHA1
@param string $key Concatenated consumer and token secrets
Generate the oauth_signature for a request