Skip to content

Commit a31cec9

Browse files
authored
Fix API version configuration: restore v1 URL path and update header to 1.2.0 (#22)
2 parents 0fcaca3 + 4bacebc commit a31cec9

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

autumn/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,4 @@
1616

1717
BASE_URL = "https://api.useautumn.com"
1818
VERSION = "v1"
19-
LATEST_API_VERSION = "1.2"
19+
LATEST_API_VERSION = "1.2.0"

autumn/aio/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ class AsyncClient(Client):
7777
def __init__(
7878
self,
7979
token: str,
80-
version: str = "1.2",
80+
version: str = "v1",
8181
*,
8282
base_url: Optional[str] = None,
8383
max_retries: int = 5,

autumn/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ async def main():
9292
def __init__(
9393
self,
9494
token: str,
95-
version: str = "1.2",
95+
version: str = "v1",
9696
*,
9797
base_url: Optional[str] = None,
9898
max_retries: int = 5,

0 commit comments

Comments
 (0)