Add required_params method

Hi, I think this kind of method is very useful for everyone. Could you merge this change?