diff --git a/pritunl_api/__init__.py b/pritunl_api/__init__.py index 9a84eb5..6c9b2f1 100644 --- a/pritunl_api/__init__.py +++ b/pritunl_api/__init__.py @@ -120,9 +120,12 @@ def __init__(self, root): self.headers = None self.root = root - def get(self): + def get(self, org_id=None): try: - self.r = self.root.auth_request(method="GET", path="/organization") + if org_id: + self.r = self.root.auth_request(method="GET", path="/organization/{0}".format(org_id)) + else: + self.r = self.root.auth_request(method="GET", path="/organization") if self.r.status_code == 200: return self.r.json() else: