Skip to content

Commit 7d18cd9

Browse files
authored
Add auth to summary api call (#14)
* add auth to summary api call * user summaryRaw api endpoint
1 parent f97e980 commit 7d18cd9

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

hole/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,10 @@ def __init__(
4040

4141
async def get_data(self):
4242
"""Get details of a *hole instance."""
43+
params = "summaryRaw&auth={}".format(self.api_token)
4344
try:
4445
async with async_timeout.timeout(5):
45-
response = await self._session.get(self.base_url)
46+
response = await self._session.get(self.base_url, params=params)
4647

4748
_LOGGER.debug("Response from *hole: %s", response.status)
4849
self.data = await response.json()

0 commit comments

Comments
 (0)