Skip to content

Commit

Permalink
Takes optional custom endpoint parameter in node js sdk
Browse files Browse the repository at this point in the history
  • Loading branch information
pierredge committed Mar 24, 2024
1 parent b1f7b6e commit 1c1de69
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/client-py/onedoc/onedoc.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,9 @@
}

class Onedoc:
def __init__(self, api_key: str):
def __init__(self, api_key: str, endpoint: str = "https://app.onedoclabs.com"):
self.api_key = api_key
self.endpoint = "https://app.onedoclabs.com"
self.endpoint = endpoint

def _build_url(self, path: str) -> str:
return f"{self.endpoint}{path}"
Expand Down

0 comments on commit 1c1de69

Please sign in to comment.