-
-
Notifications
You must be signed in to change notification settings - Fork 6
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Update #29
Merged
Update #29
Changes from 1 commit
Commits
Show all changes
25 commits
Select commit
Hold shift + click to select a range
572e84b
Update wibuapi.py
zYxDevs a18950f
forgot it lmao:v
zYxDevs 5a7bb41
test
zYxDevs 1841380
Update wibuapi
zYxDevs 60955b2
Update wibuapi.py
zYxDevs 4b9478d
Update utils.py
zYxDevs ea711fd
Update wibuapi_async.py
zYxDevs 445dbaa
Automated code formatting
zYxDevs 66ff911
Merge pull request #28 from zYxDevs/autofix
zYxDevs 3aa8d7a
Update wibuapi_async
zYxDevs 1052625
Update wibuapi.py
zYxDevs 7c68efc
Update wibuapi.py
zYxDevs b5c608c
Update wibuapi.py
zYxDevs 30be84a
Update wibuapi_async.py
zYxDevs 5b4d8e4
Update wibuapi.py
zYxDevs 303acfd
Update wibuapi_async.py
zYxDevs d3f516b
Update wibuapi.py
zYxDevs 752dc17
Update wibuapi.py
zYxDevs dfdce94
Update wibuapi.py
zYxDevs 59449c4
Update wibuapi_async.py
zYxDevs 22eb229
Update wibuapi
zYxDevs ffe6887
Update wibuapi_async
zYxDevs bf6669a
Update README: Repobeats
zYxDevs 6c4246b
Update README.md
zYxDevs 4fb6133
Merge branch 'main' into update
zYxDevs File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Update wibuapi.py
- Loading branch information
commit d3f516b6c0c4caa8dda0f51e6fb0004e88303d1a
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
|
||
|
||
class WibuAPI: | ||
def __init__(self, apikey: str = None): | ||
def __init__(self, apikey: str = ""): | ||
self.base_url = "https://wibu-api.eu.org/api" | ||
self.deprecated_url = "https://api.wibu-api.eu.org/api" | ||
self.headers = {"x-wibu-key": apikey} | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. issue (bug_risk): Check for empty API key. Consider adding a check to ensure that 'apikey' is not empty. If it is, you might want to raise an exception or log a warning. |
||
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
suggestion: Consider making 'apikey' a required parameter.
Making 'apikey' a required parameter would ensure that the API key is always provided, which might be necessary for the API calls to function correctly.