Skip to content

Commit

Permalink
Fix method in agent-api v3.4/v3.5/v3.6 classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Marcin Dębski committed Apr 17, 2024
1 parent ee811e1 commit 38ffd3c
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions changelog.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ All notable changes to this project will be documented in this file.
- Enabled instantiation for `CustomerRtmV36` within the 3.6 version of the Customer RTM API.
- Adjusted the return types in `get_client` method across RTM and WEB clients.
- Fixed an issue where messages in the WebSocket client were incorrectly shared across all instances.
- Fixed `upload_file` method in agent-api v3.4/v3.5/v3.6 classes.

## [0.3.8] - 2023-11-30

Expand Down
6 changes: 3 additions & 3 deletions docs/agent/web/api/v34.html
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ <h1 class="title">Module <code>livechat.agent.web.api.v34</code></h1>
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. &#39;&#39;&#39;
return self.session.post(f&#39;{self.api_url}/upload_file&#39;,
file=file,
files=file,
headers=headers)

def send_rich_message_postback(self,
Expand Down Expand Up @@ -1555,7 +1555,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. &#39;&#39;&#39;
return self.session.post(f&#39;{self.api_url}/upload_file&#39;,
file=file,
files=file,
headers=headers)

def send_rich_message_postback(self,
Expand Down Expand Up @@ -4388,7 +4388,7 @@ <h2 id="returns">Returns</h2>
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. &#39;&#39;&#39;
return self.session.post(f&#39;{self.api_url}/upload_file&#39;,
file=file,
files=file,
headers=headers)</code></pre>
</details>
</dd>
Expand Down
6 changes: 3 additions & 3 deletions docs/agent/web/api/v35.html
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ <h1 class="title">Module <code>livechat.agent.web.api.v35</code></h1>
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. &#39;&#39;&#39;
return self.session.post(f&#39;{self.api_url}/upload_file&#39;,
file=file,
files=file,
headers=headers)

def send_rich_message_postback(self,
Expand Down Expand Up @@ -1555,7 +1555,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. &#39;&#39;&#39;
return self.session.post(f&#39;{self.api_url}/upload_file&#39;,
file=file,
files=file,
headers=headers)

def send_rich_message_postback(self,
Expand Down Expand Up @@ -4388,7 +4388,7 @@ <h2 id="returns">Returns</h2>
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. &#39;&#39;&#39;
return self.session.post(f&#39;{self.api_url}/upload_file&#39;,
file=file,
files=file,
headers=headers)</code></pre>
</details>
</dd>
Expand Down
6 changes: 3 additions & 3 deletions docs/agent/web/api/v36.html
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ <h1 class="title">Module <code>livechat.agent.web.api.v36</code></h1>
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. &#39;&#39;&#39;
return self.session.post(f&#39;{self.api_url}/upload_file&#39;,
file=file,
files=file,
headers=headers)

def send_rich_message_postback(self,
Expand Down Expand Up @@ -1543,7 +1543,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. &#39;&#39;&#39;
return self.session.post(f&#39;{self.api_url}/upload_file&#39;,
file=file,
files=file,
headers=headers)

def send_rich_message_postback(self,
Expand Down Expand Up @@ -4341,7 +4341,7 @@ <h2 id="returns">Returns</h2>
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. &#39;&#39;&#39;
return self.session.post(f&#39;{self.api_url}/upload_file&#39;,
file=file,
files=file,
headers=headers)</code></pre>
</details>
</dd>
Expand Down
2 changes: 1 addition & 1 deletion livechat/agent/web/api/v34.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def upload_file(self,
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. '''
return self.session.post(f'{self.api_url}/upload_file',
file=file,
files=file,
headers=headers)

def send_rich_message_postback(self,
Expand Down
2 changes: 1 addition & 1 deletion livechat/agent/web/api/v35.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def upload_file(self,
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. '''
return self.session.post(f'{self.api_url}/upload_file',
file=file,
files=file,
headers=headers)

def send_rich_message_postback(self,
Expand Down
2 changes: 1 addition & 1 deletion livechat/agent/web/api/v36.py
Original file line number Diff line number Diff line change
Expand Up @@ -451,7 +451,7 @@ def upload_file(self,
httpx.Response: The Response object from `httpx` library,
which contains a server’s response to an HTTP request. '''
return self.session.post(f'{self.api_url}/upload_file',
file=file,
files=file,
headers=headers)

def send_rich_message_postback(self,
Expand Down

0 comments on commit 38ffd3c

Please sign in to comment.