Skip to content

Commit 936f804

Browse files
authored
Merge pull request #93 from livechat/API-11686-open-v36
API-11686: open v3.6
2 parents 8a047ba + 32e1441 commit 936f804

File tree

18 files changed

+5962
-5
lines changed

18 files changed

+5962
-5
lines changed

changelog.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
# Change Log
22
All notable changes to this project will be documented in this file.
33

4-
## [0.3.5] - TBA
4+
## [0.3.5] - 2022-11-25
55

66
### Added
77
- Support for new batch methods in configuration-api v3.5: `batch_create_bots`, `batch_delete_bots`, `batch_update_bots`.
8+
- Support for new version 3.6.
9+
10+
### Changed
11+
- Config now points to v3.5 as stable and 3.6 as dev-preview version.
812

913
## [0.3.4] - 2022-10-26
1014

livechat/agent/rtm/api/v36.py

Lines changed: 965 additions & 0 deletions
Large diffs are not rendered by default.

livechat/agent/rtm/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from livechat.agent.rtm.api.v33 import AgentRtmV33
99
from livechat.agent.rtm.api.v34 import AgentRtmV34
1010
from livechat.agent.rtm.api.v35 import AgentRtmV35
11+
from livechat.agent.rtm.api.v36 import AgentRtmV36
1112
from livechat.config import CONFIG
1213

1314
stable_version = CONFIG.get('stable')
@@ -37,6 +38,7 @@ def get_client(
3738
'3.3': AgentRtmV33,
3839
'3.4': AgentRtmV34,
3940
'3.5': AgentRtmV35,
41+
'3.6': AgentRtmV36,
4042
}.get(version)
4143
if not client:
4244
raise ValueError('Provided version does not exist.')

livechat/agent/web/api/v36.py

Lines changed: 1069 additions & 0 deletions
Large diffs are not rendered by default.

livechat/agent/web/base.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
from livechat.agent.web.api.v33 import AgentWebV33
99
from livechat.agent.web.api.v34 import AgentWebV34
1010
from livechat.agent.web.api.v35 import AgentWebV35
11+
from livechat.agent.web.api.v36 import AgentWebV36
1112
from livechat.config import CONFIG
1213

1314
stable_version = CONFIG.get('stable')
@@ -51,6 +52,7 @@ def get_client(
5152
'3.3': AgentWebV33(access_token, base_url, http2, proxies, verify),
5253
'3.4': AgentWebV34(access_token, base_url, http2, proxies, verify),
5354
'3.5': AgentWebV35(access_token, base_url, http2, proxies, verify),
55+
'3.6': AgentWebV36(access_token, base_url, http2, proxies, verify),
5456
}.get(version)
5557
if not client:
5658
raise ValueError('Provided version does not exist.')

livechat/config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
CONFIG = {
44
'url': 'api.livechatinc.com',
5-
'stable': '3.4',
6-
'dev': '3.5',
5+
'stable': '3.5',
6+
'dev': '3.6',
77
}

livechat/configuration/api/v36.py

Lines changed: 1485 additions & 0 deletions
Large diffs are not rendered by default.

livechat/configuration/base.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from livechat.configuration.api.v33 import ConfigurationApiV33
1111
from livechat.configuration.api.v34 import ConfigurationApiV34
1212
from livechat.configuration.api.v35 import ConfigurationApiV35
13+
from livechat.configuration.api.v36 import ConfigurationApiV36
1314

1415
stable_version = CONFIG.get('stable')
1516
api_url = CONFIG.get('url')
@@ -55,6 +56,8 @@ def get_client(
5556
verify),
5657
'3.5': ConfigurationApiV35(token, base_url, http2, proxies,
5758
verify),
59+
'3.6': ConfigurationApiV36(token, base_url, http2, proxies,
60+
verify),
5861
}.get(version)
5962
if not client:
6063
raise ValueError('Provided version does not exist.')

0 commit comments

Comments
 (0)