def check(self, request, secret):
        """Verifies whether or not the request bears an authorization appropriate and valid for this version of the signature.
        This verifies every element of the signature, including headers other than Authorization.

        Keyword arguments:
        request -- A request object which can be consumed by this API.
        secret -- The base64-encoded secret key for the HMAC authorization.
        """
        if request.get_header("Authorization") == "":
            return False
        ah = self.parse_auth_headers(request.get_header("Authorization"))
        if "id" not in ah:
            return False
        if "signature" not in ah:
            return False
        return ah["signature"] == self.sign(request, ah, secret)
def check ( self , request , secret ) : if request . get_header ( "Authorization" ) == "" : return False ah = self . parse_auth_headers ( request . get_header ( "Authorization" ) ) if "id" not in ah : return False if "signature" not in ah : return False return ah [ "signature" ] == self . sign ( request , ah , secret )
Verifies whether or not the request bears an authorization appropriate and valid for this version of the signature.
        This verifies every element of the signature, including headers other than Authorization.

        Keyword arguments:
        request -- A request object which can be consumed by this API.
        secret -- The base64-encoded secret key for the HMAC authorization.