Skip to content

Commit 0cb6fb8

Browse files
authored
Merge pull request #109 from livechat/0-3-7-release
0.3.7 version release
2 parents 087b4c2 + f35b00e commit 0cb6fb8

File tree

24 files changed

+811
-303
lines changed

24 files changed

+811
-303
lines changed

changelog.md

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

4-
## [0.3.7] - TBA
4+
## [0.3.7] - 2023-09-26
55

66
### Added
77

docs/agent/web/api/v33.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,10 @@ <h1 class="title">Module <code>livechat.agent.web.api.v33</code></h1>
4747
base_url: str,
4848
http2: bool,
4949
proxies=None,
50-
verify: bool = True):
51-
super().__init__(access_token, base_url, http2, proxies, verify)
50+
verify: bool = True,
51+
disable_logging: bool = False):
52+
super().__init__(access_token, base_url, http2, proxies, verify,
53+
disable_logging)
5254
self.api_url = f&#39;https://{base_url}/v3.3/agent/action&#39;
5355

5456
# Chats
@@ -1147,7 +1149,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
11471149
<dl>
11481150
<dt id="livechat.agent.web.api.v33.AgentWebV33"><code class="flex name class">
11491151
<span>class <span class="ident">AgentWebV33</span></span>
1150-
<span>(</span><span>access_token: str, base_url: str, http2: bool, proxies=None, verify: bool = True)</span>
1152+
<span>(</span><span>access_token: str, base_url: str, http2: bool, proxies=None, verify: bool = True, disable_logging: bool = False)</span>
11511153
</code></dt>
11521154
<dd>
11531155
<div class="desc"><p>Agent Web API Class containing methods in version 3.3.</p></div>
@@ -1162,8 +1164,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
11621164
base_url: str,
11631165
http2: bool,
11641166
proxies=None,
1165-
verify: bool = True):
1166-
super().__init__(access_token, base_url, http2, proxies, verify)
1167+
verify: bool = True,
1168+
disable_logging: bool = False):
1169+
super().__init__(access_token, base_url, http2, proxies, verify,
1170+
disable_logging)
11671171
self.api_url = f&#39;https://{base_url}/v3.3/agent/action&#39;
11681172

11691173
# Chats
@@ -4624,4 +4628,4 @@ <h4><code><a title="livechat.agent.web.api.v33.AgentWebV33" href="#livechat.agen
46244628
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
46254629
</footer>
46264630
</body>
4627-
</html>
4631+
</html>

docs/agent/web/api/v34.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ <h1 class="title">Module <code>livechat.agent.web.api.v34</code></h1>
4949
base_url: str,
5050
http2: bool,
5151
proxies=None,
52-
verify: bool = True):
53-
super().__init__(access_token, base_url, http2, proxies, verify)
52+
verify: bool = True,
53+
disable_logging: bool = False):
54+
super().__init__(access_token, base_url, http2, proxies, verify,
55+
disable_logging)
5456
self.api_url = f&#39;https://{base_url}/v3.4/agent/action&#39;
5557

5658
# Chats
@@ -1109,7 +1111,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
11091111
<dl>
11101112
<dt id="livechat.agent.web.api.v34.AgentWebV34"><code class="flex name class">
11111113
<span>class <span class="ident">AgentWebV34</span></span>
1112-
<span>(</span><span>access_token: str, base_url: str, http2: bool, proxies=None, verify: bool = True)</span>
1114+
<span>(</span><span>access_token: str, base_url: str, http2: bool, proxies=None, verify: bool = True, disable_logging: bool = False)</span>
11131115
</code></dt>
11141116
<dd>
11151117
<div class="desc"><p>Agent Web API Class containing methods in version 3.4.</p></div>
@@ -1124,8 +1126,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
11241126
base_url: str,
11251127
http2: bool,
11261128
proxies=None,
1127-
verify: bool = True):
1128-
super().__init__(access_token, base_url, http2, proxies, verify)
1129+
verify: bool = True,
1130+
disable_logging: bool = False):
1131+
super().__init__(access_token, base_url, http2, proxies, verify,
1132+
disable_logging)
11291133
self.api_url = f&#39;https://{base_url}/v3.4/agent/action&#39;
11301134

11311135
# Chats
@@ -4456,4 +4460,4 @@ <h4><code><a title="livechat.agent.web.api.v34.AgentWebV34" href="#livechat.agen
44564460
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
44574461
</footer>
44584462
</body>
4459-
</html>
4463+
</html>

docs/agent/web/api/v35.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ <h1 class="title">Module <code>livechat.agent.web.api.v35</code></h1>
4949
base_url: str,
5050
http2: bool,
5151
proxies=None,
52-
verify: bool = True):
53-
super().__init__(access_token, base_url, http2, proxies, verify)
52+
verify: bool = True,
53+
disable_logging: bool = False):
54+
super().__init__(access_token, base_url, http2, proxies, verify,
55+
disable_logging)
5456
self.api_url = f&#39;https://{base_url}/v3.5/agent/action&#39;
5557

5658
# Chats
@@ -1109,7 +1111,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
11091111
<dl>
11101112
<dt id="livechat.agent.web.api.v35.AgentWebV35"><code class="flex name class">
11111113
<span>class <span class="ident">AgentWebV35</span></span>
1112-
<span>(</span><span>access_token: str, base_url: str, http2: bool, proxies=None, verify: bool = True)</span>
1114+
<span>(</span><span>access_token: str, base_url: str, http2: bool, proxies=None, verify: bool = True, disable_logging: bool = False)</span>
11131115
</code></dt>
11141116
<dd>
11151117
<div class="desc"><p>Agent Web API Class containing methods in version 3.5.</p></div>
@@ -1124,8 +1126,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
11241126
base_url: str,
11251127
http2: bool,
11261128
proxies=None,
1127-
verify: bool = True):
1128-
super().__init__(access_token, base_url, http2, proxies, verify)
1129+
verify: bool = True,
1130+
disable_logging: bool = False):
1131+
super().__init__(access_token, base_url, http2, proxies, verify,
1132+
disable_logging)
11291133
self.api_url = f&#39;https://{base_url}/v3.5/agent/action&#39;
11301134

11311135
# Chats
@@ -4456,4 +4460,4 @@ <h4><code><a title="livechat.agent.web.api.v35.AgentWebV35" href="#livechat.agen
44564460
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
44574461
</footer>
44584462
</body>
4459-
</html>
4463+
</html>

docs/agent/web/api/v36.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -49,8 +49,10 @@ <h1 class="title">Module <code>livechat.agent.web.api.v36</code></h1>
4949
base_url: str,
5050
http2: bool,
5151
proxies=None,
52-
verify: bool = True):
53-
super().__init__(access_token, base_url, http2, proxies, verify)
52+
verify: bool = True,
53+
disable_logging: bool = False):
54+
super().__init__(access_token, base_url, http2, proxies, verify,
55+
disable_logging)
5456
self.api_url = f&#39;https://{base_url}/v3.6/agent/action&#39;
5557

5658
# Chats
@@ -1074,7 +1076,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
10741076
<dl>
10751077
<dt id="livechat.agent.web.api.v36.AgentWebV36"><code class="flex name class">
10761078
<span>class <span class="ident">AgentWebV36</span></span>
1077-
<span>(</span><span>access_token: str, base_url: str, http2: bool, proxies=None, verify: bool = True)</span>
1079+
<span>(</span><span>access_token: str, base_url: str, http2: bool, proxies=None, verify: bool = True, disable_logging: bool = False)</span>
10781080
</code></dt>
10791081
<dd>
10801082
<div class="desc"><p>Agent Web API Class containing methods in version 3.6.</p></div>
@@ -1089,8 +1091,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
10891091
base_url: str,
10901092
http2: bool,
10911093
proxies=None,
1092-
verify: bool = True):
1093-
super().__init__(access_token, base_url, http2, proxies, verify)
1094+
verify: bool = True,
1095+
disable_logging: bool = False):
1096+
super().__init__(access_token, base_url, http2, proxies, verify,
1097+
disable_logging)
10941098
self.api_url = f&#39;https://{base_url}/v3.6/agent/action&#39;
10951099

10961100
# Chats
@@ -4311,4 +4315,4 @@ <h4><code><a title="livechat.agent.web.api.v36.AgentWebV36" href="#livechat.agen
43114315
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
43124316
</footer>
43134317
</body>
4314-
</html>
4318+
</html>

docs/agent/web/base.html

Lines changed: 64 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,13 @@ <h1 class="title">Module <code>livechat.agent.web.base</code></h1>
4949
API version. &#39;&#39;&#39;
5050
@staticmethod
5151
def get_client(
52-
access_token: str,
53-
version: str = stable_version,
54-
base_url: str = api_url,
55-
http2: bool = False,
56-
proxies: dict = None,
57-
verify: bool = True
52+
access_token: str,
53+
version: str = stable_version,
54+
base_url: str = api_url,
55+
http2: bool = False,
56+
proxies: dict = None,
57+
verify: bool = True,
58+
disable_logging: bool = False,
5859
) -&gt; Union[AgentWebV33, AgentWebV34, AgentWebV35]:
5960
&#39;&#39;&#39; Returns client for specific API version.
6061

@@ -70,6 +71,7 @@ <h1 class="title">Module <code>livechat.agent.web.base</code></h1>
7071
verify the identity of requested hosts. Either `True` (default CA bundle),
7172
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
7273
(which will disable verification). Defaults to `True`.
74+
disable_logging (bool): indicates if logging should be disabled.
7375

7476
Returns:
7577
API client object for specified version.
@@ -78,10 +80,18 @@ <h1 class="title">Module <code>livechat.agent.web.base</code></h1>
7880
ValueError: If the specified version does not exist.
7981
&#39;&#39;&#39;
8082
client = {
81-
&#39;3.3&#39;: AgentWebV33(access_token, base_url, http2, proxies, verify),
82-
&#39;3.4&#39;: AgentWebV34(access_token, base_url, http2, proxies, verify),
83-
&#39;3.5&#39;: AgentWebV35(access_token, base_url, http2, proxies, verify),
84-
&#39;3.6&#39;: AgentWebV36(access_token, base_url, http2, proxies, verify),
83+
&#39;3.3&#39;:
84+
AgentWebV33(access_token, base_url, http2, proxies, verify,
85+
disable_logging),
86+
&#39;3.4&#39;:
87+
AgentWebV34(access_token, base_url, http2, proxies, verify,
88+
disable_logging),
89+
&#39;3.5&#39;:
90+
AgentWebV35(access_token, base_url, http2, proxies, verify,
91+
disable_logging),
92+
&#39;3.6&#39;:
93+
AgentWebV36(access_token, base_url, http2, proxies, verify,
94+
disable_logging),
8595
}.get(version)
8696
if not client:
8797
raise ValueError(&#39;Provided version does not exist.&#39;)
@@ -112,12 +122,13 @@ <h2 class="section-title" id="header-classes">Classes</h2>
112122
API version. &#39;&#39;&#39;
113123
@staticmethod
114124
def get_client(
115-
access_token: str,
116-
version: str = stable_version,
117-
base_url: str = api_url,
118-
http2: bool = False,
119-
proxies: dict = None,
120-
verify: bool = True
125+
access_token: str,
126+
version: str = stable_version,
127+
base_url: str = api_url,
128+
http2: bool = False,
129+
proxies: dict = None,
130+
verify: bool = True,
131+
disable_logging: bool = False,
121132
) -&gt; Union[AgentWebV33, AgentWebV34, AgentWebV35]:
122133
&#39;&#39;&#39; Returns client for specific API version.
123134

@@ -133,6 +144,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
133144
verify the identity of requested hosts. Either `True` (default CA bundle),
134145
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
135146
(which will disable verification). Defaults to `True`.
147+
disable_logging (bool): indicates if logging should be disabled.
136148

137149
Returns:
138150
API client object for specified version.
@@ -141,10 +153,18 @@ <h2 class="section-title" id="header-classes">Classes</h2>
141153
ValueError: If the specified version does not exist.
142154
&#39;&#39;&#39;
143155
client = {
144-
&#39;3.3&#39;: AgentWebV33(access_token, base_url, http2, proxies, verify),
145-
&#39;3.4&#39;: AgentWebV34(access_token, base_url, http2, proxies, verify),
146-
&#39;3.5&#39;: AgentWebV35(access_token, base_url, http2, proxies, verify),
147-
&#39;3.6&#39;: AgentWebV36(access_token, base_url, http2, proxies, verify),
156+
&#39;3.3&#39;:
157+
AgentWebV33(access_token, base_url, http2, proxies, verify,
158+
disable_logging),
159+
&#39;3.4&#39;:
160+
AgentWebV34(access_token, base_url, http2, proxies, verify,
161+
disable_logging),
162+
&#39;3.5&#39;:
163+
AgentWebV35(access_token, base_url, http2, proxies, verify,
164+
disable_logging),
165+
&#39;3.6&#39;:
166+
AgentWebV36(access_token, base_url, http2, proxies, verify,
167+
disable_logging),
148168
}.get(version)
149169
if not client:
150170
raise ValueError(&#39;Provided version does not exist.&#39;)
@@ -153,7 +173,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
153173
<h3>Static methods</h3>
154174
<dl>
155175
<dt id="livechat.agent.web.base.AgentWeb.get_client"><code class="name flex">
156-
<span>def <span class="ident">get_client</span></span>(<span>access_token: str, version: str = '3.5', base_url: str = 'api.livechatinc.com', http2: bool = False, proxies: dict = None, verify: bool = True) ‑> Union[<a title="livechat.agent.web.api.v33.AgentWebV33" href="api/v33.html#livechat.agent.web.api.v33.AgentWebV33">AgentWebV33</a><a title="livechat.agent.web.api.v34.AgentWebV34" href="api/v34.html#livechat.agent.web.api.v34.AgentWebV34">AgentWebV34</a><a title="livechat.agent.web.api.v35.AgentWebV35" href="api/v35.html#livechat.agent.web.api.v35.AgentWebV35">AgentWebV35</a>]</span>
176+
<span>def <span class="ident">get_client</span></span>(<span>access_token: str, version: str = '3.5', base_url: str = 'api.livechatinc.com', http2: bool = False, proxies: dict = None, verify: bool = True, disable_logging: bool = False) ‑> Union[<a title="livechat.agent.web.api.v33.AgentWebV33" href="api/v33.html#livechat.agent.web.api.v33.AgentWebV33">AgentWebV33</a><a title="livechat.agent.web.api.v34.AgentWebV34" href="api/v34.html#livechat.agent.web.api.v34.AgentWebV34">AgentWebV34</a><a title="livechat.agent.web.api.v35.AgentWebV35" href="api/v35.html#livechat.agent.web.api.v35.AgentWebV35">AgentWebV35</a>]</span>
157177
</code></dt>
158178
<dd>
159179
<div class="desc"><p>Returns client for specific API version.</p>
@@ -176,6 +196,8 @@ <h2 id="args">Args</h2>
176196
verify the identity of requested hosts. Either <code>True</code> (default CA bundle),
177197
a path to an SSL certificate file, an <code>ssl.SSLContext</code>, or <code>False</code>
178198
(which will disable verification). Defaults to <code>True</code>.</dd>
199+
<dt><strong><code>disable_logging</code></strong> :&ensp;<code>bool</code></dt>
200+
<dd>indicates if logging should be disabled.</dd>
179201
</dl>
180202
<h2 id="returns">Returns</h2>
181203
<p>API client object for specified version.</p>
@@ -190,12 +212,13 @@ <h2 id="raises">Raises</h2>
190212
</summary>
191213
<pre><code class="python">@staticmethod
192214
def get_client(
193-
access_token: str,
194-
version: str = stable_version,
195-
base_url: str = api_url,
196-
http2: bool = False,
197-
proxies: dict = None,
198-
verify: bool = True
215+
access_token: str,
216+
version: str = stable_version,
217+
base_url: str = api_url,
218+
http2: bool = False,
219+
proxies: dict = None,
220+
verify: bool = True,
221+
disable_logging: bool = False,
199222
) -&gt; Union[AgentWebV33, AgentWebV34, AgentWebV35]:
200223
&#39;&#39;&#39; Returns client for specific API version.
201224

@@ -211,6 +234,7 @@ <h2 id="raises">Raises</h2>
211234
verify the identity of requested hosts. Either `True` (default CA bundle),
212235
a path to an SSL certificate file, an `ssl.SSLContext`, or `False`
213236
(which will disable verification). Defaults to `True`.
237+
disable_logging (bool): indicates if logging should be disabled.
214238

215239
Returns:
216240
API client object for specified version.
@@ -219,10 +243,18 @@ <h2 id="raises">Raises</h2>
219243
ValueError: If the specified version does not exist.
220244
&#39;&#39;&#39;
221245
client = {
222-
&#39;3.3&#39;: AgentWebV33(access_token, base_url, http2, proxies, verify),
223-
&#39;3.4&#39;: AgentWebV34(access_token, base_url, http2, proxies, verify),
224-
&#39;3.5&#39;: AgentWebV35(access_token, base_url, http2, proxies, verify),
225-
&#39;3.6&#39;: AgentWebV36(access_token, base_url, http2, proxies, verify),
246+
&#39;3.3&#39;:
247+
AgentWebV33(access_token, base_url, http2, proxies, verify,
248+
disable_logging),
249+
&#39;3.4&#39;:
250+
AgentWebV34(access_token, base_url, http2, proxies, verify,
251+
disable_logging),
252+
&#39;3.5&#39;:
253+
AgentWebV35(access_token, base_url, http2, proxies, verify,
254+
disable_logging),
255+
&#39;3.6&#39;:
256+
AgentWebV36(access_token, base_url, http2, proxies, verify,
257+
disable_logging),
226258
}.get(version)
227259
if not client:
228260
raise ValueError(&#39;Provided version does not exist.&#39;)
@@ -262,4 +294,4 @@ <h4><code><a title="livechat.agent.web.base.AgentWeb" href="#livechat.agent.web.
262294
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
263295
</footer>
264296
</body>
265-
</html>
297+
</html>

docs/billing/api/v1.html

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,8 +42,10 @@ <h1 class="title">Module <code>livechat.billing.api.v1</code></h1>
4242
base_url: str,
4343
http2: bool,
4444
proxies=None,
45-
verify: bool = True):
46-
super().__init__(token, base_url, http2, proxies, verify)
45+
verify: bool = True,
46+
disable_logging: bool = False):
47+
super().__init__(token, base_url, http2, proxies, verify,
48+
disable_logging)
4749
self.api_url = f&#39;https://{base_url}/v1&#39;
4850

4951
# direct_charge
@@ -391,7 +393,7 @@ <h2 class="section-title" id="header-classes">Classes</h2>
391393
<dl>
392394
<dt id="livechat.billing.api.v1.BillingApiV1"><code class="flex name class">
393395
<span>class <span class="ident">BillingApiV1</span></span>
394-
<span>(</span><span>token: str, base_url: str, http2: bool, proxies=None, verify: bool = True)</span>
396+
<span>(</span><span>token: str, base_url: str, http2: bool, proxies=None, verify: bool = True, disable_logging: bool = False)</span>
395397
</code></dt>
396398
<dd>
397399
<div class="desc"><p>Billing API client class in version 1.</p></div>
@@ -406,8 +408,10 @@ <h2 class="section-title" id="header-classes">Classes</h2>
406408
base_url: str,
407409
http2: bool,
408410
proxies=None,
409-
verify: bool = True):
410-
super().__init__(token, base_url, http2, proxies, verify)
411+
verify: bool = True,
412+
disable_logging: bool = False):
413+
super().__init__(token, base_url, http2, proxies, verify,
414+
disable_logging)
411415
self.api_url = f&#39;https://{base_url}/v1&#39;
412416

413417
# direct_charge
@@ -1512,4 +1516,4 @@ <h4><code><a title="livechat.billing.api.v1.BillingApiV1" href="#livechat.billin
15121516
<p>Generated by <a href="https://pdoc3.github.io/pdoc" title="pdoc: Python API documentation generator"><cite>pdoc</cite> 0.10.0</a>.</p>
15131517
</footer>
15141518
</body>
1515-
</html>
1519+
</html>

0 commit comments

Comments
 (0)