8
8
from livechat .utils .http_client import HttpClient
9
9
from livechat .utils .structures import AccessToken
10
10
11
+ # pylint: disable=unused-argument,too-many-arguments
12
+
11
13
12
14
class ReportsApiV35 (HttpClient ):
13
15
''' Reports API client class in version 3.5. '''
@@ -47,7 +49,7 @@ def duration(self,
47
49
48
50
Returns:
49
51
httpx.Response: The Response object from `httpx` library,
50
- which contains a server’ s response to an HTTP request.
52
+ which contains a server' s response to an HTTP request.
51
53
'''
52
54
if payload is None :
53
55
payload = prepare_payload (locals ())
@@ -77,7 +79,7 @@ def tags(self,
77
79
78
80
Returns:
79
81
httpx.Response: The Response object from `httpx` library,
80
- which contains a server’ s response to an HTTP request.
82
+ which contains a server' s response to an HTTP request.
81
83
'''
82
84
if payload is None :
83
85
payload = prepare_payload (locals ())
@@ -107,7 +109,7 @@ def total_chats(self,
107
109
108
110
Returns:
109
111
httpx.Response: The Response object from `httpx` library,
110
- which contains a server’ s response to an HTTP request.
112
+ which contains a server' s response to an HTTP request.
111
113
'''
112
114
if payload is None :
113
115
payload = prepare_payload (locals ())
@@ -137,7 +139,7 @@ def ratings(self,
137
139
138
140
Returns:
139
141
httpx.Response: The Response object from `httpx` library,
140
- which contains a server’ s response to an HTTP request.
142
+ which contains a server' s response to an HTTP request.
141
143
'''
142
144
if payload is None :
143
145
payload = prepare_payload (locals ())
@@ -167,7 +169,7 @@ def ranking(self,
167
169
168
170
Returns:
169
171
httpx.Response: The Response object from `httpx` library,
170
- which contains a server’ s response to an HTTP request.
172
+ which contains a server' s response to an HTTP request.
171
173
'''
172
174
if payload is None :
173
175
payload = prepare_payload (locals ())
@@ -197,7 +199,7 @@ def engagement(self,
197
199
198
200
Returns:
199
201
httpx.Response: The Response object from `httpx` library,
200
- which contains a server’ s response to an HTTP request.
202
+ which contains a server' s response to an HTTP request.
201
203
'''
202
204
if payload is None :
203
205
payload = prepare_payload (locals ())
@@ -227,20 +229,21 @@ def greetings_conversion(self,
227
229
228
230
Returns:
229
231
httpx.Response: The Response object from `httpx` library,
230
- which contains a server’ s response to an HTTP request.
232
+ which contains a server' s response to an HTTP request.
231
233
'''
232
234
if payload is None :
233
235
payload = prepare_payload (locals ())
234
236
return self .session .post (f'{ self .api_url } /chats/greetings_conversion' ,
235
237
json = payload ,
236
238
headers = headers )
237
239
238
- def surveys (self ,
239
- timezone : str = None ,
240
- filters : dict = None ,
241
- payload : dict = None ,
242
- headers : dict = None ) -> httpx .Response :
243
- ''' Returns the number of submitted chat surveys along with the count of specific answers.
240
+ def forms (self ,
241
+ timezone : str = None ,
242
+ filters : dict = None ,
243
+ payload : dict = None ,
244
+ headers : dict = None ) -> httpx .Response :
245
+ ''' Returns the number of submitted chat forms along with the count of specific answers.
246
+
244
247
245
248
Args:
246
249
timezone (str): IANA Time Zone (e.g. America/Phoenix).
@@ -255,11 +258,11 @@ def surveys(self,
255
258
256
259
Returns:
257
260
httpx.Response: The Response object from `httpx` library,
258
- which contains a server’ s response to an HTTP request.
261
+ which contains a server' s response to an HTTP request.
259
262
'''
260
263
if payload is None :
261
264
payload = prepare_payload (locals ())
262
- return self .session .post (f'{ self .api_url } /chats/surveys ' ,
265
+ return self .session .post (f'{ self .api_url } /chats/forms ' ,
263
266
json = payload ,
264
267
headers = headers )
265
268
@@ -285,7 +288,7 @@ def response_time(self,
285
288
286
289
Returns:
287
290
httpx.Response: The Response object from `httpx` library,
288
- which contains a server’ s response to an HTTP request.
291
+ which contains a server' s response to an HTTP request.
289
292
'''
290
293
if payload is None :
291
294
payload = prepare_payload (locals ())
@@ -315,7 +318,7 @@ def first_response_time(self,
315
318
316
319
Returns:
317
320
httpx.Response: The Response object from `httpx` library,
318
- which contains a server’ s response to an HTTP request.
321
+ which contains a server' s response to an HTTP request.
319
322
'''
320
323
if payload is None :
321
324
payload = prepare_payload (locals ())
@@ -347,7 +350,7 @@ def availability(self,
347
350
348
351
Returns:
349
352
httpx.Response: The Response object from `httpx` library,
350
- which contains a server’ s response to an HTTP request.
353
+ which contains a server' s response to an HTTP request.
351
354
'''
352
355
if payload is None :
353
356
payload = prepare_payload (locals ())
@@ -377,7 +380,7 @@ def performance(self,
377
380
378
381
Returns:
379
382
httpx.Response: The Response object from `httpx` library,
380
- which contains a server’ s response to an HTTP request.
383
+ which contains a server' s response to an HTTP request.
381
384
'''
382
385
if payload is None :
383
386
payload = prepare_payload (locals ())
@@ -408,7 +411,7 @@ def chat_usage(self,
408
411
409
412
Returns:
410
413
httpx.Response: The Response object from `httpx` library,
411
- which contains a server’ s response to an HTTP request.
414
+ which contains a server' s response to an HTTP request.
412
415
'''
413
416
if payload is None :
414
417
payload = prepare_payload (locals ())
0 commit comments