diff --git a/rpm/quads-lib.spec b/rpm/quads-lib.spec index f9886ca..b8c87c9 100644 --- a/rpm/quads-lib.spec +++ b/rpm/quads-lib.spec @@ -12,7 +12,7 @@ %define name quads-lib %define reponame python-quads-lib %define branch development -%define version 0.1.13 +%define version 0.1.14 %define build_timestamp %{lua: print(os.date("%Y%m%d"))} Summary: Python client library for interacting with the QUADS API diff --git a/setup.py b/setup.py index 64f320a..8e0d588 100755 --- a/setup.py +++ b/setup.py @@ -13,7 +13,7 @@ def read(*names, **kwargs): setup( name="quads-lib", - version="0.1.13", + version="0.1.14", license="LGPL-3.0-only", description="Python client library for interacting with the QUADS API", long_description="{}\n{}".format( diff --git a/src/quads_lib/__init__.py b/src/quads_lib/__init__.py index 7ba8667..b22daeb 100644 --- a/src/quads_lib/__init__.py +++ b/src/quads_lib/__init__.py @@ -1,4 +1,4 @@ -__version__ = "0.1.13" +__version__ = "0.1.14" from .quads import QuadsApi diff --git a/src/quads_lib/quads.py b/src/quads_lib/quads.py index e7d00a8..e577a08 100644 --- a/src/quads_lib/quads.py +++ b/src/quads_lib/quads.py @@ -37,8 +37,8 @@ def login(self) -> dict: self.session.headers.update({"Authorization": f"Bearer {self.token}"}) return json_response - def get_current_user(self) -> dict: - return self.get("me") + def get_user(self, email: str) -> dict: + return self.get(f"users/{email}") def logout(self) -> dict: json_response = self._make_request("POST", "logout")