ZettaIO / cachet-client

A python 3.6+ client for the Cachet API : https://cachet-client.readthedocs.io/
MIT License
14 stars 8 forks source link

Add params argument to list methods #25

Open einarf opened 3 years ago

einarf commented 3 years ago

Right now we don't have support for extra parameters related to searching or sorting. Instead of users having to to go _post and _get methods in the base class we should expost this directly.

def list(self, ...., params: Dict = None);
    ....
subscribers = client.subsribers.list(..., params={"param1": "value1, "param2": "value2"}

This is a "low level" fix for https://github.com/ZettaIO/cachet-client/issues/6, but there are room for both.