We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 617c5a4 commit e94e2d4Copy full SHA for e94e2d4
Adafruit_IO/client.py
@@ -111,10 +111,11 @@ def _handle_error(response):
111
def _compose_url(self, path):
112
return '{0}/api/{1}/{2}/{3}'.format(self.base_url, 'v2', self.username, path)
113
114
- def _get(self, path):
+ def _get(self, path, params=None):
115
response = requests.get(self._compose_url(path),
116
headers=self._headers({'X-AIO-Key': self.key}),
117
- proxies=self.proxies)
+ proxies=self.proxies,
118
+ params=params)
119
self._handle_error(response)
120
return response.json()
121
0 commit comments