Skip to content

Commit 5814407

Browse files
author
Yoga Pranata
authored
Merge pull request #31 from zYxDevs/update
Update: custom base_url
2 parents 89c85b7 + 53c1ace commit 5814407

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
setuptools.setup(
88
name="wibuapi",
9-
version="0.1.7",
9+
version="0.1.8",
1010
description="Official Sync and Async Python Wrapper for Wibu API.",
1111
long_description=long_description,
1212
long_description_content_type="text/markdown",

wibuapi/wibuapi.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66

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

wibuapi/wibuapi_async.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66

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

wibuapi/zyxdevs.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@
55

66

77
class Etc:
8-
def __init__(self):
9-
self.base_url = "https://wibu-api.eu.org/api"
8+
def __init__(self, base_url: str):
9+
self.base_url = base_url
1010
self.deprecated_url = "https://api.wibu-api.eu.org/api"
1111

1212
def stats(self):

0 commit comments

Comments
 (0)