[api] Add method for downloading SDL data

This commit is contained in:
derrod 2021-09-05 09:06:57 +02:00
parent 72aea19853
commit 82a2706e4c

View file

@ -22,3 +22,9 @@ class LGDAPI:
timeout=10.0) timeout=10.0)
r.raise_for_status() r.raise_for_status()
return r.json() return r.json()
def get_sdl_config(self, app_name):
r = self.session.get(f'https://{self._api_host}/v1/sdl/{app_name}.json',
timeout=10.0)
r.raise_for_status()
return r.json()