Skip to content

Commit 161834b

Browse files
author
PureCloud Jenkins
committed
49.0.1
1 parent c49b393 commit 161834b

5 files changed

Lines changed: 21 additions & 117 deletions

File tree

build/PureCloudPlatformClientV2/api_client.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,6 +83,10 @@ def __init__(self, host=None, header_name=None, header_value=None, cookie=None):
8383
# Set default User-Agent.
8484
self.user_agent = 'PureCloud SDK/python'
8585

86+
# access token for OAuth
87+
self.access_token = ""
88+
89+
8690
@property
8791
def user_agent(self):
8892
"""
@@ -112,7 +116,7 @@ def __call_api(self, resource_path, method,
112116
header_params['Cookie'] = self.cookie
113117
if header_params:
114118
header_params = self.sanitize_for_serialization(header_params)
115-
header_params['purecloud-sdk'] = '49.0.0'
119+
header_params['purecloud-sdk'] = '49.0.1'
116120

117121
# path parameters
118122
if path_params:
@@ -456,7 +460,7 @@ def update_params_for_auth(self, headers, querys, auth_settings):
456460
return
457461

458462
for auth in auth_settings:
459-
auth_setting = config.auth_settings().get(auth)
463+
auth_setting = config.auth_settings(self.access_token).get(auth)
460464
if auth_setting:
461465
if not auth_setting['value']:
462466
continue
@@ -577,4 +581,4 @@ def __deserialize_model(self, data, klass):
577581
value = data[instance.attribute_map[attr]]
578582
setattr(instance, attr, self.__deserialize(value, attr_type))
579583

580-
return instance
584+
return instance

build/PureCloudPlatformClientV2/configuration.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -210,20 +210,21 @@ def get_basic_auth_token(self):
210210
return urllib3.util.make_headers(basic_auth=self.username + ':' + self.password)\
211211
.get('authorization')
212212

213-
def auth_settings(self):
213+
def auth_settings(self, access_token=None):
214214
"""
215215
Gets Auth Settings dict for api client.
216216
217217
:return: The Auth Settings information dict.
218218
"""
219+
219220
return {
220221

221222
'PureCloud OAuth':
222223
{
223224
'type': 'oauth2',
224225
'in': 'header',
225226
'key': 'Authorization',
226-
'value': 'Bearer ' + self.access_token
227+
'value': 'Bearer ' + self.access_token if access_token is None or access_token == "" else 'Bearer ' + access_token
227228
},
228229
'Guest Chat JWT':
229230
{
@@ -245,5 +246,5 @@ def to_debug_report(self):
245246
"OS: {env}\n"\
246247
"Python Version: {pyversion}\n"\
247248
"Version of the API: v2\n"\
248-
"SDK Package Version: 49.0.0".\
249+
"SDK Package Version: 49.0.1".\
249250
format(env=sys.platform, pyversion=sys.version)

build/setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
from setuptools import setup, find_packages
55

66
NAME = "PureCloudPlatformClientV2"
7-
VERSION = "49.0.0"
7+
VERSION = "49.0.1"
88

99

1010

@@ -19,7 +19,7 @@
1919

2020
setup(
2121
name="PureCloudPlatformClientV2",
22-
version="49.0.0",
22+
version="49.0.1",
2323
description="PureCloud Platform API SDK",
2424
author="Genesys Developer Evangelists",
2525
author_email="DeveloperEvangelists@Genesys.com",

releaseNotes.md

Lines changed: 5 additions & 106 deletions
Original file line numberDiff line numberDiff line change
@@ -1,115 +1,14 @@
11
Platform API version: 3021
22

33

4-
# Major Changes (11 changes)
4+
# SDK Changes
55

6-
**GET /api/v2/users** (1 change)
6+
* better auth token handling
77

8-
* Parameter jabberId was added
8+
# Major Changes (0 changes)
99

10-
**GET /api/v2/integrations/actions/categories** (2 changes)
1110

12-
* Parameter expand was removed
13-
* Parameter sortOrder was added
11+
# Minor Changes (0 changes)
1412

15-
**GET /api/v2/integrations/actions/drafts** (3 changes)
1613

17-
* Parameter expand was removed
18-
* Parameter sortOrder was added
19-
* Parameter name was added
20-
21-
**GET /api/v2/routing/queues/{queueId}/wrapupcodes** (2 changes)
22-
23-
* Parameter pageSize was added
24-
* Parameter pageNumber was added
25-
26-
**GET /api/v2/integrations/actions** (3 changes)
27-
28-
* Parameter expand was removed
29-
* Parameter sortOrder was added
30-
* Parameter name was added
31-
32-
33-
# Minor Changes (19 changes)
34-
35-
**/api/v2/authorization/subjects/rolecounts** (2 changes)
36-
37-
* Path was added
38-
* Operation GET was added
39-
40-
**ViewFilter** (8 changes)
41-
42-
* Optional property originatingDirections was added
43-
* Optional property sessionDnisList was added
44-
* Enum value whatsapp was added to property messageTypes
45-
* Enum value inboundchat was added to property flowTypes
46-
* Optional property flowVersions was added
47-
* Optional property hasJourneyCustomerId was added
48-
* Optional property hasJourneyActionMapId was added
49-
* Optional property hasJourneyVisitId was added
50-
51-
**Voicemail** (1 change)
52-
53-
* Enum value none was added to property uploadStatus
54-
55-
**Dependency** (1 change)
56-
57-
* Enum value INBOUNDCHATFLOW was added to property type
58-
59-
**DependencyObject** (1 change)
60-
61-
* Enum value INBOUNDCHATFLOW was added to property type
62-
63-
**AggregationQuery** (1 change)
64-
65-
* Enum value calibrationId was added to property groupBy
66-
67-
**AnalyticsQueryPredicate** (1 change)
68-
69-
* Enum value calibrationId was added to property dimension
70-
71-
**AnalyticsEvaluation** (1 change)
72-
73-
* Optional property calibrationId was added
74-
75-
**AnalyticsFlow** (1 change)
76-
77-
* Enum value INBOUNDCHAT was added to property flowType
78-
79-
**Flow** (1 change)
80-
81-
* Enum value INBOUNDCHAT was added to property type
82-
83-
**FlowDivisionView** (1 change)
84-
85-
* Enum value INBOUNDCHAT was added to property type
86-
87-
88-
# Point Changes (9 changes)
89-
90-
**GET /api/v2/users** (1 change)
91-
92-
* Description was changed for parameter id
93-
94-
**GET /api/v2/integrations/actions/{actionId}** (2 changes)
95-
96-
* Description was changed for parameter expand
97-
* Description was changed for parameter includeConfig
98-
99-
**GET /api/v2/integrations/actions/categories** (2 changes)
100-
101-
* Description was changed for parameter sortBy
102-
* Description was changed for parameter secure
103-
104-
**GET /api/v2/integrations/actions/drafts** (1 change)
105-
106-
* Description was changed for parameter sortBy
107-
108-
**GET /api/v2/integrations/actions/{actionId}/draft** (2 changes)
109-
110-
* Description was changed for parameter expand
111-
* Description was changed for parameter includeConfig
112-
113-
**GET /api/v2/integrations/actions** (1 change)
114-
115-
* Description was changed for parameter sortBy
14+
# Point Changes (0 changes)

version.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
{
22
"major": 49,
33
"minor": 0,
4-
"point": 0,
4+
"point": 1,
55
"prerelease": "",
66
"apiVersion": 0,
7-
"display": "49.0.0",
8-
"displayFull": "49.0.0"
7+
"display": "49.0.1",
8+
"displayFull": "49.0.1"
99
}

0 commit comments

Comments
 (0)