def METHOD_NAME(self, res):
    import re
    sensitive_key = [r'secret', r'key', r'clientid']
    for key in sensitive_key:
        if key in res.lower():
            res = re.sub(r'("name":( ?)"[^"]*{}[^"]*",( ?)"value":( ?))"[^"]*"'.format(key), 
                         r'\1"HIDDEN"', 
                         res, flags=re.IGNORECASE)
    return res