Unifi-Python-API icon indicating copy to clipboard operation
Unifi-Python-API copied to clipboard

Wrong format in list_clients function

Open PfefferT opened this issue 6 years ago • 0 comments

r = self._session.get("{}/api/s/{}/stat/sta".format(self._baseurl, self._site, verify=self._verify_ssl), data="json={}")

should be

r = self._session.get("{}/api/s/{}/stat/sta".format(self._baseurl, self._site), verify=self._verify_ssl, data="json={}")

For description: with the format function you can define what should be filled inside the curly brackets. the url has two defined curly brackets, but inside format you have defined 3 parameters and the verfiy is part of the request method :-)

PfefferT avatar Nov 30 '19 08:11 PfefferT