def post(action, params=None, version=6):
        """
        For the documentation, see https://foosoft.net/projects/anki-connect/

        :param str action:
        :param dict params:
        :param int version:
        :return:
        """
        if params is None:
            params = dict()
        to_send = {
            'action': action,
            'version': version,
            'params': params
        }

        r = requests.post(AnkiConnect.URL, json=to_send)
        return r.json()
For the documentation, see https://foosoft.net/projects/anki-connect/

        :param str action:
        :param dict params:
        :param int version:
        :return: