Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions seamapi/seam.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import os
from .routes import Routes
import requests
import pkg_resources
from typing import Optional, cast
from .types import AbstractSeam, SeamAPIException

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

Expand Down