File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11from docusign_click import ApiClient
2-
2+ from .. ds_config import DS_CONFIG
33
44def create_click_api_client (access_token ):
55 """Create Click API client and construct API headers"""
6- api_client = ApiClient (host = "https://demo.docusign.net/clickapi" )
6+ api_client = ApiClient (host = DS_CONFIG [ "click_api_client_host" ] )
77 api_client .set_default_header (
88 header_name = "Authorization" ,
99 header_value = f"Bearer { access_token } "
Original file line number Diff line number Diff line change 1111 # NOTE: You must add a Redirect URI of appUrl/ds/callback to your Integration Key.
1212 # Example: http://localhost:5000/ds/callback
1313 "authorization_server" : "https://account-d.docusign.com" ,
14+ "click_api_client_host" : "https://demo.docusign.net/clickapi" ,
15+ "rooms_api_client_host" : "https://demo.rooms.docusign.com/restapi" ,
1416 "allow_silent_authentication" : True , # a user can be silently authenticated if they have an
1517 # active login session on another tab of the same browser
1618 "target_account_id" : None , # Set if you want a specific DocuSign AccountId,
3941
4042EXAMPLES_API_TYPE = {
4143 "Rooms" : False ,
42- "ESignature" : False ,
43- "Click" : True
44+ "ESignature" : True ,
45+ "Click" : False
4446}
Original file line number Diff line number Diff line change 11from docusign_rooms import ApiClient
2-
2+ from .. ds_config import DS_CONFIG
33
44def create_rooms_api_client (access_token ):
55 """Create API client and construct API headers"""
6- api_client = ApiClient (host = "https://demo.rooms.docusign.com/restapi" )
6+ api_client = ApiClient (host = DS_CONFIG [ "rooms_api_client_host" ] )
77 api_client .set_default_header (
88 header_name = "Authorization" ,
99 header_value = f"Bearer { access_token } "
You can’t perform that action at this time.
0 commit comments