Skip to content

Commit

Permalink
Merge pull request #24 from adzerk/sc-61963/add-api-key-to-explainer
Browse files Browse the repository at this point in the history
[sc-61963] add api key to explainer
  • Loading branch information
akiradev authored Oct 10, 2024
2 parents 3258320 + f5dda90 commit 1c30b18
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pythonpackage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ jobs:
sed -i s/version=VERSION/version=\"0.0.1+${GITHUB_REF##*/}\"/g setup.py
python -m pip install --user --upgrade setuptools wheel
python -m pip install --user --upgrade setuptools wheel twine
pip install -r requirements.txt
python setup.py sdist bdist_wheel
python setup.py bdist_wheel upload -r local
twine upload -r local ./dist/*
1 change: 1 addition & 0 deletions adzerk_decision_sdk/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ def get(self, request, **kwargs):
api_client.set_default_header('X-Adzerk-Explain', json.dumps(header_object))

api_client.set_default_header('X-Adzerk-Explain', kwargs['api_key'])
api_client.set_default_header('X-Adzerk-ApiKey', kwargs['api_key'])
if 'user_agent' in kwargs:
api_client.set_default_header('User-Agent', kwargs['user_agent'])

Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
from setuptools import setup, find_packages # noqa: H301

NAME = "adzerk-decision-sdk"
VERSION = "1.0.0-beta.14"
VERSION = "1.0.0-beta.15"
# To install the library, run the following
#
# python setup.py install
Expand Down

0 comments on commit 1c30b18

Please sign in to comment.