4doom4 / python-voipms

Python client for v1 of voip.ms REST API
MIT License
24 stars 12 forks source link

TypeError: Method must be provided when using the REST/JSON API #10

Open BRCook opened 2 years ago

BRCook commented 2 years ago

I get the following error no matter what command I issue:

Traceback (most recent call last): File "<stdin>", line 1, in <module> File "C:\Python39\lib\site-packages\voipms\entities\generalget.py", line 72, in ip return self._voipms_client._get(method) File "C:\Python39\lib\site-packages\voipms\voipmsclient.py", line 74, in _get self._error_code(status) File "C:\Python39\lib\site-packages\voipms\voipmsclient.py", line 37, in _error_code raise TypeError(ERROR_CODES[status]) TypeError: Method must be provided when using the REST/JSON API

That in particular is the result of client.general.get.ip() but no methods so far have worked.