forked from BD-Python-PIP/code-examples-python
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathutils.py
More file actions
11 lines (10 loc) · 389 Bytes
/
utils.py
File metadata and controls
11 lines (10 loc) · 389 Bytes
1
2
3
4
5
6
7
8
9
10
11
from docusign_click import ApiClient
from ..ds_config import DS_CONFIG
def create_click_api_client(access_token):
"""Create Click API client and construct API headers"""
api_client = ApiClient(host=DS_CONFIG["click_api_client_host"])
api_client.set_default_header(
header_name="Authorization",
header_value=f"Bearer {access_token}"
)
return api_client