Skip to content

Commit

Permalink
Merge pull request #31 from zYxDevs/update
Browse files Browse the repository at this point in the history
Update: custom base_url
  • Loading branch information
zYxDevs authored Sep 19, 2024
2 parents 89c85b7 + 53c1ace commit 5814407
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

setuptools.setup(
name="wibuapi",
version="0.1.7",
version="0.1.8",
description="Official Sync and Async Python Wrapper for Wibu API.",
long_description=long_description,
long_description_content_type="text/markdown",
Expand Down
4 changes: 2 additions & 2 deletions wibuapi/wibuapi.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


class WibuAPI:
def __init__(self, apikey: str = ""):
self.base_url = "https://wibu-api.eu.org/api"
def __init__(self, base_url: str, apikey: str = ""):
self.base_url = base_url
self.deprecated_url = "https://api.wibu-api.eu.org/api"
self.headers = {"x-wibu-key": apikey}

Expand Down
4 changes: 2 additions & 2 deletions wibuapi/wibuapi_async.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


class AsyncWibuAPI:
def __init__(self, apikey: str = ""):
self.base_url = "https://wibu-api.eu.org/api"
def __init__(self, base_url: str, apikey: str = ""):
self.base_url = base_url
self.deprecated_url = "https://api.wibu-api.eu.org/api"
self.headers = {"x-wibu-key": apikey}

Expand Down
4 changes: 2 additions & 2 deletions wibuapi/zyxdevs.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@


class Etc:
def __init__(self):
self.base_url = "https://wibu-api.eu.org/api"
def __init__(self, base_url: str):
self.base_url = base_url
self.deprecated_url = "https://api.wibu-api.eu.org/api"

def stats(self):
Expand Down

0 comments on commit 5814407

Please sign in to comment.