Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit aa00ba2

Browse files
authored
feat: Merge pull request #56 from seamapi/feat-add-user-agent
2 parents f7425d8 + e50b97f commit aa00ba2

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

seamapi/seam.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import os
22
from .routes import Routes
33
import requests
4+
import pkg_resources
45
from typing import Optional, cast
56
from .types import AbstractSeam, SeamAPIException
67

@@ -82,6 +83,7 @@ def make_request(self, method: str, path: str, **kwargs):
8283
headers = {
8384
"Authorization": "Bearer " + self.api_key,
8485
"Content-Type": "application/json",
86+
"User-Agent": "Python SDK v" + pkg_resources.get_distribution("seamapi").version + " (https://github.com/seamapi/python)",
8587
}
8688
response = requests.request(method, url, headers=headers, **kwargs)
8789

0 commit comments

Comments
 (0)