Skip to content

Commit b2a7247

Browse files
authored
Merge pull request #19 from evrone/feature/fix-urls
Switched to api.track.toggl.com
2 parents cb0f31d + d460983 commit b2a7247

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

toggl_python/api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class Api:
1616
Allow to interact with official Toggl API via httpx.
1717
"""
1818

19-
BASE_URL: httpx.URL = httpx.URL("https://www.toggl.com/api/v8/")
19+
BASE_URL: httpx.URL = httpx.URL("https://api.track.toggl.com/api/v8/")
2020
HEADERS = {
2121
"content-type": "application/json",
2222
"user_agent": "toggl-python",

toggl_python/repository.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ class TimeEntries(BaseRepository):
234234

235235

236236
class ReportTimeEntries(BaseRepository):
237-
BASE_URL: httpx.URL = httpx.URL("https://toggl.com/reports/api/v2/")
237+
BASE_URL: httpx.URL = httpx.URL("https://api.track.toggl.com/reports/api/v2/")
238238
ADDITIONAL_PARAMS = {"list": {"user_agent": "toggl_python"}}
239239
DATA_CONTAINER = {"list": "data"}
240240
LIST_URL = "details"

0 commit comments

Comments
 (0)