File tree Expand file tree Collapse file tree 10 files changed +183
-162
lines changed Expand file tree Collapse file tree 10 files changed +183
-162
lines changed Original file line number Diff line number Diff line change @@ -6,8 +6,9 @@ name = "pypi"
6
6
[packages ]
7
7
websocket-client = " 1.7.0"
8
8
urllib3 = " 2.1.0"
9
- httpx = {extras = [" http2" ], version = " 0.25.2" }
9
+ httpx = {extras = [" http2" ], version = " == 0.25.2" }
10
10
loguru = " ==0.7.2"
11
+ idna = " >=3.7"
11
12
12
13
[dev-packages ]
13
14
pre-commit = " 3.5.0"
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
16
16
- Enabled instantiation for ` CustomerRtmV36 ` within the 3.6 version of the Customer RTM API.
17
17
- Adjusted the return types in ` get_client ` method across RTM and WEB clients.
18
18
- Fixed an issue where messages in the WebSocket client were incorrectly shared across all instances.
19
+ - Fixed ` upload_file ` method in agent-api v3.4/v3.5/v3.6 classes.
19
20
20
21
## [ 0.3.8] - 2023-11-30
21
22
Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ <h1 class="title">Module <code>livechat.agent.web.api.v34</code></h1>
478
478
httpx.Response: The Response object from `httpx` library,
479
479
which contains a server’s response to an HTTP request. '''
480
480
return self.session.post(f'{self.api_url}/upload_file',
481
- file =file,
481
+ files =file,
482
482
headers=headers)
483
483
484
484
def send_rich_message_postback(self,
@@ -1555,7 +1555,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
1555
1555
httpx.Response: The Response object from `httpx` library,
1556
1556
which contains a server’s response to an HTTP request. '''
1557
1557
return self.session.post(f'{self.api_url}/upload_file',
1558
- file =file,
1558
+ files =file,
1559
1559
headers=headers)
1560
1560
1561
1561
def send_rich_message_postback(self,
@@ -4388,7 +4388,7 @@ <h2 id="returns">Returns</h2>
4388
4388
httpx.Response: The Response object from `httpx` library,
4389
4389
which contains a server’s response to an HTTP request. '''
4390
4390
return self.session.post(f'{self.api_url}/upload_file',
4391
- file =file,
4391
+ files =file,
4392
4392
headers=headers)</ code > </ pre >
4393
4393
</ details >
4394
4394
</ dd >
Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ <h1 class="title">Module <code>livechat.agent.web.api.v35</code></h1>
478
478
httpx.Response: The Response object from `httpx` library,
479
479
which contains a server’s response to an HTTP request. '''
480
480
return self.session.post(f'{self.api_url}/upload_file',
481
- file =file,
481
+ files =file,
482
482
headers=headers)
483
483
484
484
def send_rich_message_postback(self,
@@ -1555,7 +1555,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
1555
1555
httpx.Response: The Response object from `httpx` library,
1556
1556
which contains a server’s response to an HTTP request. '''
1557
1557
return self.session.post(f'{self.api_url}/upload_file',
1558
- file =file,
1558
+ files =file,
1559
1559
headers=headers)
1560
1560
1561
1561
def send_rich_message_postback(self,
@@ -4388,7 +4388,7 @@ <h2 id="returns">Returns</h2>
4388
4388
httpx.Response: The Response object from `httpx` library,
4389
4389
which contains a server’s response to an HTTP request. '''
4390
4390
return self.session.post(f'{self.api_url}/upload_file',
4391
- file =file,
4391
+ files =file,
4392
4392
headers=headers)</ code > </ pre >
4393
4393
</ details >
4394
4394
</ dd >
Original file line number Diff line number Diff line change @@ -478,7 +478,7 @@ <h1 class="title">Module <code>livechat.agent.web.api.v36</code></h1>
478
478
httpx.Response: The Response object from `httpx` library,
479
479
which contains a server’s response to an HTTP request. '''
480
480
return self.session.post(f'{self.api_url}/upload_file',
481
- file =file,
481
+ files =file,
482
482
headers=headers)
483
483
484
484
def send_rich_message_postback(self,
@@ -1543,7 +1543,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
1543
1543
httpx.Response: The Response object from `httpx` library,
1544
1544
which contains a server’s response to an HTTP request. '''
1545
1545
return self.session.post(f'{self.api_url}/upload_file',
1546
- file =file,
1546
+ files =file,
1547
1547
headers=headers)
1548
1548
1549
1549
def send_rich_message_postback(self,
@@ -4341,7 +4341,7 @@ <h2 id="returns">Returns</h2>
4341
4341
httpx.Response: The Response object from `httpx` library,
4342
4342
which contains a server’s response to an HTTP request. '''
4343
4343
return self.session.post(f'{self.api_url}/upload_file',
4344
- file =file,
4344
+ files =file,
4345
4345
headers=headers)</ code > </ pre >
4346
4346
</ details >
4347
4347
</ dd >
Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ def upload_file(self,
451
451
httpx.Response: The Response object from `httpx` library,
452
452
which contains a server’s response to an HTTP request. '''
453
453
return self .session .post (f'{ self .api_url } /upload_file' ,
454
- file = file ,
454
+ files = file ,
455
455
headers = headers )
456
456
457
457
def send_rich_message_postback (self ,
Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ def upload_file(self,
451
451
httpx.Response: The Response object from `httpx` library,
452
452
which contains a server’s response to an HTTP request. '''
453
453
return self .session .post (f'{ self .api_url } /upload_file' ,
454
- file = file ,
454
+ files = file ,
455
455
headers = headers )
456
456
457
457
def send_rich_message_postback (self ,
Original file line number Diff line number Diff line change @@ -451,7 +451,7 @@ def upload_file(self,
451
451
httpx.Response: The Response object from `httpx` library,
452
452
which contains a server’s response to an HTTP request. '''
453
453
return self .session .post (f'{ self .api_url } /upload_file' ,
454
- file = file ,
454
+ files = file ,
455
455
headers = headers )
456
456
457
457
def send_rich_message_postback (self ,
Original file line number Diff line number Diff line change 1
1
-i https://pypi.org/simple
2
- anyio == 4.1.0 ; python_version >= '3.8'
3
- certifi == 2023.11.17 ; python_version >= '3.6'
4
- exceptiongroup == 1.2.0 ; python_version < '3.11'
5
- h11 == 0.14.0 ; python_version >= '3.7'
2
+ anyio == 4.3.0 ; python_version >= '3.8'
3
+ certifi == 2024.2.2 ; python_version >= '3.6'
4
+ exceptiongroup == 1.2.0 ; python_version < '3.11'
5
+ h11 == 0.14.0 ; python_version >= '3.7'
6
6
h2 == 4.1.0
7
- hpack == 4.0.0 ; python_full_version >= '3.6.1'
8
- httpcore == 1.0.2 ; python_version >= '3.8'
9
- httpx [http2 ]== 0.25.2
10
- hyperframe == 6.0.1 ; python_full_version >= '3.6.1'
11
- idna == 3.6 ; python_version >= '3.5'
12
- loguru == 0.7.2
13
- sniffio == 1.3.0 ; python_version >= '3.7'
14
- urllib3 == 2.1.0
15
- websocket-client == 1.7.0
7
+ hpack == 4.0.0 ; python_full_version >= '3.6.1'
8
+ httpcore == 1.0.5 ; python_version >= '3.8'
9
+ httpx [http2 ]== 0.25.2 ; python_version >= '3.8'
10
+ hyperframe == 6.0.1 ; python_full_version >= '3.6.1'
11
+ idna == 3.7 ; python_version >= '3.5'
12
+ loguru == 0.7.2 ; python_version >= '3.5'
13
+ sniffio == 1.3.1 ; python_version >= '3.7'
14
+ typing-extensions == 4.11.0 ; python_version < '3.11'
15
+ urllib3 == 2.1.0 ; python_version >= '3.8'
16
+ websocket-client == 1.7.0 ; python_version >= '3.8'
You can’t perform that action at this time.
0 commit comments