Compare commits
6 Commits
b76a125786
...
latest
| Author | SHA1 | Date | |
|---|---|---|---|
| f9b66f8951 | |||
| 35524a736f | |||
| 9f90bbdfee | |||
| f0194d3bb9 | |||
| b7bbf91983 | |||
| c38ae24d2f |
@ -1,6 +1,6 @@
|
||||
[project]
|
||||
name = "oxidedonationalerts"
|
||||
version = "1.0.0"
|
||||
version = "1.0.3"
|
||||
description = "Client for DonationAlerts API"
|
||||
readme = "README.md"
|
||||
authors = [{ name = "Miwory", email = "miwory.uwu@gmail.com" }]
|
||||
@ -13,7 +13,6 @@ build-backend = "uv_build"
|
||||
|
||||
[dependency-groups]
|
||||
dev = [
|
||||
"ty>=0.0.17",
|
||||
"ruff>=0.15.0",
|
||||
"pyright>=1.1.408",
|
||||
"poethepoet>=0.40.0",
|
||||
@ -33,8 +32,9 @@ explicit = true
|
||||
[tool.poe.tasks]
|
||||
_git = "git add ."
|
||||
_lint = "pre-commit run --all-files"
|
||||
_ty = "uvx ty@latest check ."
|
||||
|
||||
lint = ["_git", "_lint"]
|
||||
lint = ["_git", "_lint", "_ty"]
|
||||
check = "uv pip ls --outdated"
|
||||
|
||||
major = "uv version --bump major"
|
||||
|
||||
@ -13,7 +13,7 @@ class DonationAlertsAPIClient(OxideHTTP):
|
||||
redis_url: str | None = None,
|
||||
proxy_url: str | None = None,
|
||||
) -> None:
|
||||
self.base_uri = 'https://www.donationalerts.com/api/v1'
|
||||
self.base_uri = 'https://www.donationalerts.com/api/v1/'
|
||||
|
||||
super().__init__(
|
||||
base_url=self.base_uri,
|
||||
@ -137,8 +137,8 @@ class DonationAlertsAPIClient(OxideHTTP):
|
||||
) -> s.CentrifugeSubscribe:
|
||||
req = await self.post(
|
||||
'/centrifuge/subscribe',
|
||||
None,
|
||||
self._auth(access_token),
|
||||
None,
|
||||
{'client': client, 'channels': subscriptions},
|
||||
)
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ class DonationAlertsAuthClient(OxideHTTP):
|
||||
redis_url: str | None = None,
|
||||
proxy_url: str | None = None,
|
||||
) -> None:
|
||||
self.base_uri = 'https://www.donationalerts.com/oauth'
|
||||
self.base_uri = 'https://www.donationalerts.com/oauth/'
|
||||
self.client_id = client_id
|
||||
self.client_secret = client_secret
|
||||
self.redirect_uri = redirect_uri
|
||||
|
||||
@ -30,8 +30,10 @@ class UserOauthData(BaseSchema):
|
||||
id: int
|
||||
code: str
|
||||
name: str
|
||||
is_active: bool
|
||||
avatar: HttpUrl
|
||||
email: EmailStr
|
||||
language: str
|
||||
socket_connection_token: str
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user