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

Commit

Permalink
feat: Merge pull request #56 from seamapi/feat-add-user-agent
Browse files Browse the repository at this point in the history
  • Loading branch information
codetheweb authored Oct 12, 2022
2 parents f7425d8 + e50b97f commit aa00ba2
Showing 1 changed file with 2 additions and 0 deletions.
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

0 comments on commit aa00ba2

Please sign in to comment.