Skip to content

Commit a6587e7

Browse files
committed
Add user-agent header
1 parent 070226e commit a6587e7

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

toggl_python/api.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,10 @@ class Api:
1313
"""Simple api wraper."""
1414

1515
BASE_URL: httpx.URL = httpx.URL("https://www.toggl.com/api/v8/")
16-
HEADERS = {"content-type": "application/json"}
16+
HEADERS = {
17+
"content-type": "application/json",
18+
"user_agent": "toggl-python",
19+
}
1720

1821
def __init__(
1922
self,

0 commit comments

Comments
 (0)