@@ -9,7 +9,7 @@ Method | HTTP request | Description
99
1010
1111# ** agent_ask**
12- > AskResponse agent_ask(ask_request, authorization=authorization, ks_uat=ks_uat )
12+ > AskResponse agent_ask(ask_request)
1313
1414Agent Ask Handler
1515
@@ -36,6 +36,8 @@ semantics distinguish cause:
3636
3737### Example
3838
39+ * Api Key Authentication (cookieAuth):
40+ * Bearer Authentication (bearerAuth):
3941
4042``` python
4143import ksapi
@@ -50,18 +52,31 @@ configuration = ksapi.Configuration(
5052 host = " http://localhost:8000"
5153)
5254
55+ # The client must configure the authentication and authorization parameters
56+ # in accordance with the API server security policy.
57+ # Examples for each auth method are provided below, use the example that
58+ # satisfies your auth use case.
59+
60+ # Configure API key authorization: cookieAuth
61+ configuration.api_key[' cookieAuth' ] = os.environ[" API_KEY" ]
62+
63+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
64+ # configuration.api_key_prefix['cookieAuth'] = 'Bearer'
65+
66+ # Configure Bearer authorization: bearerAuth
67+ configuration = ksapi.Configuration(
68+ access_token = os.environ[" BEARER_TOKEN" ]
69+ )
5370
5471# Enter a context with an instance of the API client
5572with ksapi.ApiClient(configuration) as api_client:
5673 # Create an instance of the API class
5774 api_instance = ksapi.AgentApi(api_client)
5875 ask_request = ksapi.AskRequest() # AskRequest |
59- authorization = ' authorization_example' # str | (optional)
60- ks_uat = ' ks_uat_example' # str | (optional)
6176
6277 try :
6378 # Agent Ask Handler
64- api_response = api_instance.agent_ask(ask_request, authorization = authorization, ks_uat = ks_uat )
79+ api_response = api_instance.agent_ask(ask_request)
6580 print (" The response of AgentApi->agent_ask:\n " )
6681 pprint(api_response)
6782 except Exception as e:
@@ -76,16 +91,14 @@ with ksapi.ApiClient(configuration) as api_client:
7691Name | Type | Description | Notes
7792------------- | ------------- | ------------- | -------------
7893 ** ask_request** | [ ** AskRequest** ] ( AskRequest.md ) | |
79- ** authorization** | ** str** | | [ optional]
80- ** ks_uat** | ** str** | | [ optional]
8194
8295### Return type
8396
8497[ ** AskResponse** ] ( AskResponse.md )
8598
8699### Authorization
87100
88- No authorization required
101+ [ cookieAuth ] ( ../README.md#cookieAuth ) , [ bearerAuth ] ( ../README.md#bearerAuth )
89102
90103### HTTP request headers
91104
@@ -102,7 +115,7 @@ No authorization required
102115[[ Back to top]] ( # ) [[ Back to API list]] ( ../README.md#documentation-for-api-endpoints ) [[ Back to Model list]] ( ../README.md#documentation-for-models ) [[ Back to README]] ( ../README.md )
103116
104117# ** agent_extract**
105- > ExtractResponse agent_extract(extract_request, authorization=authorization, ks_uat=ks_uat )
118+ > ExtractResponse agent_extract(extract_request)
106119
107120Agent Extract Handler
108121
@@ -120,6 +133,8 @@ failures both refund.
120133
121134### Example
122135
136+ * Api Key Authentication (cookieAuth):
137+ * Bearer Authentication (bearerAuth):
123138
124139``` python
125140import ksapi
@@ -134,18 +149,31 @@ configuration = ksapi.Configuration(
134149 host = " http://localhost:8000"
135150)
136151
152+ # The client must configure the authentication and authorization parameters
153+ # in accordance with the API server security policy.
154+ # Examples for each auth method are provided below, use the example that
155+ # satisfies your auth use case.
156+
157+ # Configure API key authorization: cookieAuth
158+ configuration.api_key[' cookieAuth' ] = os.environ[" API_KEY" ]
159+
160+ # Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
161+ # configuration.api_key_prefix['cookieAuth'] = 'Bearer'
162+
163+ # Configure Bearer authorization: bearerAuth
164+ configuration = ksapi.Configuration(
165+ access_token = os.environ[" BEARER_TOKEN" ]
166+ )
137167
138168# Enter a context with an instance of the API client
139169with ksapi.ApiClient(configuration) as api_client:
140170 # Create an instance of the API class
141171 api_instance = ksapi.AgentApi(api_client)
142172 extract_request = ksapi.ExtractRequest() # ExtractRequest |
143- authorization = ' authorization_example' # str | (optional)
144- ks_uat = ' ks_uat_example' # str | (optional)
145173
146174 try :
147175 # Agent Extract Handler
148- api_response = api_instance.agent_extract(extract_request, authorization = authorization, ks_uat = ks_uat )
176+ api_response = api_instance.agent_extract(extract_request)
149177 print (" The response of AgentApi->agent_extract:\n " )
150178 pprint(api_response)
151179 except Exception as e:
@@ -160,16 +188,14 @@ with ksapi.ApiClient(configuration) as api_client:
160188Name | Type | Description | Notes
161189------------- | ------------- | ------------- | -------------
162190 ** extract_request** | [ ** ExtractRequest** ] ( ExtractRequest.md ) | |
163- ** authorization** | ** str** | | [ optional]
164- ** ks_uat** | ** str** | | [ optional]
165191
166192### Return type
167193
168194[ ** ExtractResponse** ] ( ExtractResponse.md )
169195
170196### Authorization
171197
172- No authorization required
198+ [ cookieAuth ] ( ../README.md#cookieAuth ) , [ bearerAuth ] ( ../README.md#bearerAuth )
173199
174200### HTTP request headers
175201
0 commit comments