function (application_secret, token_secret, signature_base) {
        var passphrase;
        var signature;

        application_secret = encode(application_secret);
        token_secret = encode(token_secret || '');

        passphrase = application_secret + '&' + token_secret;
        signature = Cryptography.hmac(Cryptography.SHA1, passphrase, signature_base);

        return btoa(signature);
    }
function (application_secret, token_secret, signature_base) {
        var passphrase;
        var signature;

        application_secret = encode(application_secret);
        token_secret = encode(token_secret || '');

        passphrase = application_secret + '&' + token_secret;
        signature = Cryptography.hmac(Cryptography.SHA1, passphrase, signature_base);

        return btoa(signature);
    }
function ( application_secret , token_secret , signature_base ) { var passphrase ; var signature ; application_secret = encode ( application_secret ) ; token_secret = encode ( token_secret || '' ) ; passphrase = application_secret + '&' + token_secret ; signature = Cryptography . hmac ( Cryptography . SHA1 , passphrase , signature_base ) ; return btoa ( signature ) ; }
Sign the request

@param consumer_secret {string} the consumer secret
@param token_secret {string}  the token secret
@param signature_base {string}  the signature base string
Sign the request