Add new endpoint to get user info

This commit is contained in:
Kevin Fronczak
2020-05-30 16:37:36 +00:00
parent e6469aea5f
commit 27cddaac70
+6
View File
@@ -60,6 +60,12 @@ def request_networks(blink):
return http_get(blink, url)
def request_user(blink):
"""Get user information from blink servers."""
url = f"{blink.urls.base_url}/user"
return http_get(blink, url)
def request_network_status(blink, network):
"""
Request network information.