Skip to content

API-11686: open v3.6 #93

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Nov 25, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion changelog.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# Change Log
All notable changes to this project will be documented in this file.

## [0.3.5] - TBA
## [0.3.5] - 2022-11-25

### Added
- Support for new batch methods in configuration-api v3.5: `batch_create_bots`, `batch_delete_bots`, `batch_update_bots`.
- Support for new version 3.6.

### Changed
- Config now points to v3.5 as stable and 3.6 as dev-preview version.

## [0.3.4] - 2022-10-26

Expand Down
965 changes: 965 additions & 0 deletions livechat/agent/rtm/api/v36.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions livechat/agent/rtm/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from livechat.agent.rtm.api.v33 import AgentRtmV33
from livechat.agent.rtm.api.v34 import AgentRtmV34
from livechat.agent.rtm.api.v35 import AgentRtmV35
from livechat.agent.rtm.api.v36 import AgentRtmV36
from livechat.config import CONFIG

stable_version = CONFIG.get('stable')
Expand Down Expand Up @@ -37,6 +38,7 @@ def get_client(
'3.3': AgentRtmV33,
'3.4': AgentRtmV34,
'3.5': AgentRtmV35,
'3.6': AgentRtmV36,
}.get(version)
if not client:
raise ValueError('Provided version does not exist.')
Expand Down
1,069 changes: 1,069 additions & 0 deletions livechat/agent/web/api/v36.py

Large diffs are not rendered by default.

2 changes: 2 additions & 0 deletions livechat/agent/web/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
from livechat.agent.web.api.v33 import AgentWebV33
from livechat.agent.web.api.v34 import AgentWebV34
from livechat.agent.web.api.v35 import AgentWebV35
from livechat.agent.web.api.v36 import AgentWebV36
from livechat.config import CONFIG

stable_version = CONFIG.get('stable')
Expand Down Expand Up @@ -51,6 +52,7 @@ def get_client(
'3.3': AgentWebV33(access_token, base_url, http2, proxies, verify),
'3.4': AgentWebV34(access_token, base_url, http2, proxies, verify),
'3.5': AgentWebV35(access_token, base_url, http2, proxies, verify),
'3.6': AgentWebV36(access_token, base_url, http2, proxies, verify),
}.get(version)
if not client:
raise ValueError('Provided version does not exist.')
Expand Down
4 changes: 2 additions & 2 deletions livechat/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

CONFIG = {
'url': 'api.livechatinc.com',
'stable': '3.4',
'dev': '3.5',
'stable': '3.5',
'dev': '3.6',
}
1,485 changes: 1,485 additions & 0 deletions livechat/configuration/api/v36.py

Large diffs are not rendered by default.

3 changes: 3 additions & 0 deletions livechat/configuration/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from livechat.configuration.api.v33 import ConfigurationApiV33
from livechat.configuration.api.v34 import ConfigurationApiV34
from livechat.configuration.api.v35 import ConfigurationApiV35
from livechat.configuration.api.v36 import ConfigurationApiV36

stable_version = CONFIG.get('stable')
api_url = CONFIG.get('url')
Expand Down Expand Up @@ -55,6 +56,8 @@ def get_client(
verify),
'3.5': ConfigurationApiV35(token, base_url, http2, proxies,
verify),
'3.6': ConfigurationApiV36(token, base_url, http2, proxies,
verify),
}.get(version)
if not client:
raise ValueError('Provided version does not exist.')
Expand Down
Loading