Skip to content

Commit dcd7592

Browse files
authored
fix(jx3api): change base url
1 parent 0eeb404 commit dcd7592

File tree

3 files changed

+7
-3
lines changed

3 files changed

+7
-3
lines changed

README.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ from jx3api import AsyncJX3API
3131
async_api = AsyncJX3API(token=..., ticket=...)
3232

3333
await async_api.active_calendar(server="梦江南")
34+
35+
# Websocket
36+
async for msg in async_api.socket():
37+
...
3438
```
3539

3640
## FYI

jx3api/jx3api.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
class JX3API:
2121
def __init__(
22-
self, *, token=None, ticket=None, base_url="https://seasun.nicemoe.cn"
22+
self, *, token=None, ticket=None, base_url="https://www.jx3api.com"
2323
):
2424
self.token = token or os.getenv("JX3API_TOKEN")
2525
self.ticket = ticket or os.getenv("JX3API_TICKET")
@@ -394,7 +394,7 @@ def sound_converter(
394394

395395
class AsyncJX3API:
396396
def __init__(
397-
self, *, token=None, ticket=None, base_url="https://seasun.nicemoe.cn"
397+
self, *, token=None, ticket=None, base_url="https://www.jx3api.com"
398398
):
399399
self.token = token or os.getenv("JX3API_TOKEN")
400400
self.ticket = ticket or os.getenv("JX3API_TICKET")

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "hatchling.build"
44

55
[project]
66
name = "jx3api"
7-
version = "2024.12.15post1"
7+
version = "2024.12.18"
88
dependencies = ["aiohttp"]
99
requires-python = ">=3"
1010
description = "The Python SDK to the JX3API"

0 commit comments

Comments
 (0)