purecloud-platform-client-v2 208.0.0 → 209.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/node/purecloud-platform-client-v2.js +1088 -118
- package/dist/web-amd/purecloud-platform-client-v2.js +1088 -118
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +406 -134
- package/dist/web-cjs/purecloud-platform-client-v2.js +547 -209
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +3406 -2914
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentCopilotApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentUIApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AlertingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AnalyticsApi.js +4 -4
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuditApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/AuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/BillingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CarrierServicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/CoachingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ContentManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ConversationsApi.js +1 -2
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DownloadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmailsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EmployeeEngagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/EventsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ExternalContactsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FaxApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/FlowsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GamificationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeneralDataProtectionRegulationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GeolocationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GreetingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/GroupsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IdentityProviderApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/InfrastructureAsCodeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/IntegrationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +7 -3
- package/src/purecloud-platform-client-v2/api/LanguageUnderstandingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LanguagesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LearningApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LicenseApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LocationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/LogCaptureApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/MobileDevicesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/NotificationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OAuthApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ObjectsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OperationalEventsApi.js +52 -1
- package/src/purecloud-platform-client-v2/api/OrganizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OrganizationAuthorizationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/OutboundApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/PresenceApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ProcessAutomationApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/QualityApi.js +5 -3
- package/src/purecloud-platform-client-v2/api/RecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ResponseManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/RoutingApi.js +29 -25
- package/src/purecloud-platform-client-v2/api/SCIMApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScreenRecordingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/ScriptsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SearchApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SettingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SocialMediaApi.js +910 -0
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/StationsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/SuggestApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TaskManagementApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TeamsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TelephonyProvidersEdgeApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TextbotsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/TokensApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UploadsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsageApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UserRecordingsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UsersApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/UtilitiesApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/VoicemailApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebChatApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebDeploymentsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WebMessagingApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WidgetsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/WorkforceManagementApi.js +7 -7
- package/src/purecloud-platform-client-v2/index.js +7 -1
|
@@ -0,0 +1,910 @@
|
|
|
1
|
+
import ApiClient from '../ApiClient.js';
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class SocialMediaApi {
|
|
5
|
+
/**
|
|
6
|
+
* SocialMedia service.
|
|
7
|
+
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
8
|
+
* @version 209.0.0
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Constructs a new SocialMediaApi.
|
|
13
|
+
* @alias module:purecloud-platform-client-v2/api/SocialMediaApi
|
|
14
|
+
* @class
|
|
15
|
+
* @param {module:purecloud-platform-client-v2/ApiClient} apiClient Optional API client implementation to use,
|
|
16
|
+
* default to {@link module:purecloud-platform-client-v2/ApiClient#instance} if unspecified.
|
|
17
|
+
*/
|
|
18
|
+
constructor(apiClient) {
|
|
19
|
+
this.apiClient = apiClient || ApiClient.instance;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Delete a social topic.
|
|
25
|
+
*
|
|
26
|
+
* @param {String} topicId topicId
|
|
27
|
+
* @param {Object} opts Optional parameters
|
|
28
|
+
* @param {Boolean} opts.hardDelete Determines whether a Social topic should be soft-deleted or hard-deleted (permanently removed). Set to false (soft-delete) by default.
|
|
29
|
+
* deleteSocialmediaTopic is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
30
|
+
*/
|
|
31
|
+
deleteSocialmediaTopic(topicId, opts) {
|
|
32
|
+
opts = opts || {};
|
|
33
|
+
|
|
34
|
+
// verify the required parameter 'topicId' is set
|
|
35
|
+
if (topicId === undefined || topicId === null) {
|
|
36
|
+
throw 'Missing the required parameter "topicId" when calling deleteSocialmediaTopic';
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
return this.apiClient.callApi(
|
|
40
|
+
'/api/v2/socialmedia/topics/{topicId}',
|
|
41
|
+
'DELETE',
|
|
42
|
+
{ 'topicId': topicId },
|
|
43
|
+
{ 'hardDelete': opts['hardDelete'] },
|
|
44
|
+
{ },
|
|
45
|
+
{ },
|
|
46
|
+
null,
|
|
47
|
+
['PureCloud OAuth'],
|
|
48
|
+
['application/json'],
|
|
49
|
+
['application/json']
|
|
50
|
+
);
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
/**
|
|
54
|
+
* Delete a Facebook data ingestion rule.
|
|
55
|
+
*
|
|
56
|
+
* @param {String} topicId topicId
|
|
57
|
+
* @param {String} facebookIngestionRuleId facebookIngestionRuleId
|
|
58
|
+
* @param {Object} opts Optional parameters
|
|
59
|
+
* @param {Boolean} opts.hardDelete Determines whether a Facebook data ingestion rule should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default. (default to false)
|
|
60
|
+
* deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
61
|
+
*/
|
|
62
|
+
deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId, facebookIngestionRuleId, opts) {
|
|
63
|
+
opts = opts || {};
|
|
64
|
+
|
|
65
|
+
// verify the required parameter 'topicId' is set
|
|
66
|
+
if (topicId === undefined || topicId === null) {
|
|
67
|
+
throw 'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';
|
|
68
|
+
}
|
|
69
|
+
// verify the required parameter 'facebookIngestionRuleId' is set
|
|
70
|
+
if (facebookIngestionRuleId === undefined || facebookIngestionRuleId === null) {
|
|
71
|
+
throw 'Missing the required parameter "facebookIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
return this.apiClient.callApi(
|
|
75
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}',
|
|
76
|
+
'DELETE',
|
|
77
|
+
{ 'topicId': topicId,'facebookIngestionRuleId': facebookIngestionRuleId },
|
|
78
|
+
{ 'hardDelete': opts['hardDelete'] },
|
|
79
|
+
{ },
|
|
80
|
+
{ },
|
|
81
|
+
null,
|
|
82
|
+
['PureCloud OAuth'],
|
|
83
|
+
['application/json'],
|
|
84
|
+
['application/json']
|
|
85
|
+
);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
/**
|
|
89
|
+
* Delete a open data ingestion rule.
|
|
90
|
+
*
|
|
91
|
+
* @param {String} topicId topicId
|
|
92
|
+
* @param {String} openId openId
|
|
93
|
+
* @param {Object} opts Optional parameters
|
|
94
|
+
* @param {Boolean} opts.hardDelete Determines whether a open data ingestion rule should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default. (default to false)
|
|
95
|
+
* deleteSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
96
|
+
*/
|
|
97
|
+
deleteSocialmediaTopicDataingestionrulesOpenOpenId(topicId, openId, opts) {
|
|
98
|
+
opts = opts || {};
|
|
99
|
+
|
|
100
|
+
// verify the required parameter 'topicId' is set
|
|
101
|
+
if (topicId === undefined || topicId === null) {
|
|
102
|
+
throw 'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';
|
|
103
|
+
}
|
|
104
|
+
// verify the required parameter 'openId' is set
|
|
105
|
+
if (openId === undefined || openId === null) {
|
|
106
|
+
throw 'Missing the required parameter "openId" when calling deleteSocialmediaTopicDataingestionrulesOpenOpenId';
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
return this.apiClient.callApi(
|
|
110
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}',
|
|
111
|
+
'DELETE',
|
|
112
|
+
{ 'topicId': topicId,'openId': openId },
|
|
113
|
+
{ 'hardDelete': opts['hardDelete'] },
|
|
114
|
+
{ },
|
|
115
|
+
{ },
|
|
116
|
+
null,
|
|
117
|
+
['PureCloud OAuth'],
|
|
118
|
+
['application/json'],
|
|
119
|
+
['application/json']
|
|
120
|
+
);
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Delete a X (formally Twitter) data ingestion rule.
|
|
125
|
+
*
|
|
126
|
+
* @param {String} topicId topicId
|
|
127
|
+
* @param {String} twitterIngestionRuleId twitterIngestionRuleId
|
|
128
|
+
* @param {Object} opts Optional parameters
|
|
129
|
+
* @param {Boolean} opts.hardDelete Determines whether a X (formally Twitter) data ingestion rule should be soft-deleted (have it's state set to deleted) or hard-deleted (permanently removed). Set to false (soft-delete) by default. (default to false)
|
|
130
|
+
* deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
131
|
+
*/
|
|
132
|
+
deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(topicId, twitterIngestionRuleId, opts) {
|
|
133
|
+
opts = opts || {};
|
|
134
|
+
|
|
135
|
+
// verify the required parameter 'topicId' is set
|
|
136
|
+
if (topicId === undefined || topicId === null) {
|
|
137
|
+
throw 'Missing the required parameter "topicId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';
|
|
138
|
+
}
|
|
139
|
+
// verify the required parameter 'twitterIngestionRuleId' is set
|
|
140
|
+
if (twitterIngestionRuleId === undefined || twitterIngestionRuleId === null) {
|
|
141
|
+
throw 'Missing the required parameter "twitterIngestionRuleId" when calling deleteSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
return this.apiClient.callApi(
|
|
145
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}',
|
|
146
|
+
'DELETE',
|
|
147
|
+
{ 'topicId': topicId,'twitterIngestionRuleId': twitterIngestionRuleId },
|
|
148
|
+
{ 'hardDelete': opts['hardDelete'] },
|
|
149
|
+
{ },
|
|
150
|
+
{ },
|
|
151
|
+
null,
|
|
152
|
+
['PureCloud OAuth'],
|
|
153
|
+
['application/json'],
|
|
154
|
+
['application/json']
|
|
155
|
+
);
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Get a single social topic.
|
|
160
|
+
*
|
|
161
|
+
* @param {String} topicId topicId
|
|
162
|
+
* @param {Object} opts Optional parameters
|
|
163
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
164
|
+
* getSocialmediaTopic is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
165
|
+
*/
|
|
166
|
+
getSocialmediaTopic(topicId, opts) {
|
|
167
|
+
opts = opts || {};
|
|
168
|
+
|
|
169
|
+
// verify the required parameter 'topicId' is set
|
|
170
|
+
if (topicId === undefined || topicId === null) {
|
|
171
|
+
throw 'Missing the required parameter "topicId" when calling getSocialmediaTopic';
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
return this.apiClient.callApi(
|
|
175
|
+
'/api/v2/socialmedia/topics/{topicId}',
|
|
176
|
+
'GET',
|
|
177
|
+
{ 'topicId': topicId },
|
|
178
|
+
{ 'includeDeleted': opts['includeDeleted'] },
|
|
179
|
+
{ },
|
|
180
|
+
{ },
|
|
181
|
+
null,
|
|
182
|
+
['PureCloud OAuth'],
|
|
183
|
+
['application/json'],
|
|
184
|
+
['application/json']
|
|
185
|
+
);
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* Get a single Facebook data ingestion rule.
|
|
190
|
+
*
|
|
191
|
+
* @param {String} topicId topicId
|
|
192
|
+
* @param {String} facebookIngestionRuleId facebookIngestionRuleId
|
|
193
|
+
* @param {Object} opts Optional parameters
|
|
194
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
195
|
+
* getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
196
|
+
*/
|
|
197
|
+
getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId, facebookIngestionRuleId, opts) {
|
|
198
|
+
opts = opts || {};
|
|
199
|
+
|
|
200
|
+
// verify the required parameter 'topicId' is set
|
|
201
|
+
if (topicId === undefined || topicId === null) {
|
|
202
|
+
throw 'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';
|
|
203
|
+
}
|
|
204
|
+
// verify the required parameter 'facebookIngestionRuleId' is set
|
|
205
|
+
if (facebookIngestionRuleId === undefined || facebookIngestionRuleId === null) {
|
|
206
|
+
throw 'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
return this.apiClient.callApi(
|
|
210
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}',
|
|
211
|
+
'GET',
|
|
212
|
+
{ 'topicId': topicId,'facebookIngestionRuleId': facebookIngestionRuleId },
|
|
213
|
+
{ 'includeDeleted': opts['includeDeleted'] },
|
|
214
|
+
{ },
|
|
215
|
+
{ },
|
|
216
|
+
null,
|
|
217
|
+
['PureCloud OAuth'],
|
|
218
|
+
['application/json'],
|
|
219
|
+
['application/json']
|
|
220
|
+
);
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Get a single Facebook data ingestion rule version.
|
|
225
|
+
*
|
|
226
|
+
* @param {String} topicId topicId
|
|
227
|
+
* @param {String} facebookIngestionRuleId facebookIngestionRuleId
|
|
228
|
+
* @param {String} dataIngestionRuleVersion version
|
|
229
|
+
* @param {Object} opts Optional parameters
|
|
230
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
|
|
231
|
+
* getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
232
|
+
*/
|
|
233
|
+
getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion(topicId, facebookIngestionRuleId, dataIngestionRuleVersion, opts) {
|
|
234
|
+
opts = opts || {};
|
|
235
|
+
|
|
236
|
+
// verify the required parameter 'topicId' is set
|
|
237
|
+
if (topicId === undefined || topicId === null) {
|
|
238
|
+
throw 'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';
|
|
239
|
+
}
|
|
240
|
+
// verify the required parameter 'facebookIngestionRuleId' is set
|
|
241
|
+
if (facebookIngestionRuleId === undefined || facebookIngestionRuleId === null) {
|
|
242
|
+
throw 'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';
|
|
243
|
+
}
|
|
244
|
+
// verify the required parameter 'dataIngestionRuleVersion' is set
|
|
245
|
+
if (dataIngestionRuleVersion === undefined || dataIngestionRuleVersion === null) {
|
|
246
|
+
throw 'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersion';
|
|
247
|
+
}
|
|
248
|
+
|
|
249
|
+
return this.apiClient.callApi(
|
|
250
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions/{dataIngestionRuleVersion}',
|
|
251
|
+
'GET',
|
|
252
|
+
{ 'topicId': topicId,'facebookIngestionRuleId': facebookIngestionRuleId,'dataIngestionRuleVersion': dataIngestionRuleVersion },
|
|
253
|
+
{ 'includeDeleted': opts['includeDeleted'] },
|
|
254
|
+
{ },
|
|
255
|
+
{ },
|
|
256
|
+
null,
|
|
257
|
+
['PureCloud OAuth'],
|
|
258
|
+
['application/json'],
|
|
259
|
+
['application/json']
|
|
260
|
+
);
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
/**
|
|
264
|
+
* Get the Facebook data ingestion rule versions.
|
|
265
|
+
*
|
|
266
|
+
* @param {String} topicId topicId
|
|
267
|
+
* @param {String} facebookIngestionRuleId facebookIngestionRuleId
|
|
268
|
+
* @param {Object} opts Optional parameters
|
|
269
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
270
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
271
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
272
|
+
* getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
273
|
+
*/
|
|
274
|
+
getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions(topicId, facebookIngestionRuleId, opts) {
|
|
275
|
+
opts = opts || {};
|
|
276
|
+
|
|
277
|
+
// verify the required parameter 'topicId' is set
|
|
278
|
+
if (topicId === undefined || topicId === null) {
|
|
279
|
+
throw 'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';
|
|
280
|
+
}
|
|
281
|
+
// verify the required parameter 'facebookIngestionRuleId' is set
|
|
282
|
+
if (facebookIngestionRuleId === undefined || facebookIngestionRuleId === null) {
|
|
283
|
+
throw 'Missing the required parameter "facebookIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleIdVersions';
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
return this.apiClient.callApi(
|
|
287
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}/versions',
|
|
288
|
+
'GET',
|
|
289
|
+
{ 'topicId': topicId,'facebookIngestionRuleId': facebookIngestionRuleId },
|
|
290
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'includeDeleted': opts['includeDeleted'] },
|
|
291
|
+
{ },
|
|
292
|
+
{ },
|
|
293
|
+
null,
|
|
294
|
+
['PureCloud OAuth'],
|
|
295
|
+
['application/json'],
|
|
296
|
+
['application/json']
|
|
297
|
+
);
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
/**
|
|
301
|
+
* Get a single open data ingestion rule.
|
|
302
|
+
*
|
|
303
|
+
* @param {String} topicId topicId
|
|
304
|
+
* @param {String} openId openId
|
|
305
|
+
* @param {Object} opts Optional parameters
|
|
306
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
307
|
+
* getSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
308
|
+
*/
|
|
309
|
+
getSocialmediaTopicDataingestionrulesOpenOpenId(topicId, openId, opts) {
|
|
310
|
+
opts = opts || {};
|
|
311
|
+
|
|
312
|
+
// verify the required parameter 'topicId' is set
|
|
313
|
+
if (topicId === undefined || topicId === null) {
|
|
314
|
+
throw 'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';
|
|
315
|
+
}
|
|
316
|
+
// verify the required parameter 'openId' is set
|
|
317
|
+
if (openId === undefined || openId === null) {
|
|
318
|
+
throw 'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenId';
|
|
319
|
+
}
|
|
320
|
+
|
|
321
|
+
return this.apiClient.callApi(
|
|
322
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}',
|
|
323
|
+
'GET',
|
|
324
|
+
{ 'topicId': topicId,'openId': openId },
|
|
325
|
+
{ 'includeDeleted': opts['includeDeleted'] },
|
|
326
|
+
{ },
|
|
327
|
+
{ },
|
|
328
|
+
null,
|
|
329
|
+
['PureCloud OAuth'],
|
|
330
|
+
['application/json'],
|
|
331
|
+
['application/json']
|
|
332
|
+
);
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* Get a single Open data ingestion rule version.
|
|
337
|
+
*
|
|
338
|
+
* @param {String} topicId topicId
|
|
339
|
+
* @param {String} openId openId
|
|
340
|
+
* @param {String} dataIngestionRuleVersion version
|
|
341
|
+
* @param {Object} opts Optional parameters
|
|
342
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
|
|
343
|
+
* getSocialmediaTopicDataingestionrulesOpenOpenIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
344
|
+
*/
|
|
345
|
+
getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(topicId, openId, dataIngestionRuleVersion, opts) {
|
|
346
|
+
opts = opts || {};
|
|
347
|
+
|
|
348
|
+
// verify the required parameter 'topicId' is set
|
|
349
|
+
if (topicId === undefined || topicId === null) {
|
|
350
|
+
throw 'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';
|
|
351
|
+
}
|
|
352
|
+
// verify the required parameter 'openId' is set
|
|
353
|
+
if (openId === undefined || openId === null) {
|
|
354
|
+
throw 'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';
|
|
355
|
+
}
|
|
356
|
+
// verify the required parameter 'dataIngestionRuleVersion' is set
|
|
357
|
+
if (dataIngestionRuleVersion === undefined || dataIngestionRuleVersion === null) {
|
|
358
|
+
throw 'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersion';
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
return this.apiClient.callApi(
|
|
362
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions/{dataIngestionRuleVersion}',
|
|
363
|
+
'GET',
|
|
364
|
+
{ 'topicId': topicId,'openId': openId,'dataIngestionRuleVersion': dataIngestionRuleVersion },
|
|
365
|
+
{ 'includeDeleted': opts['includeDeleted'] },
|
|
366
|
+
{ },
|
|
367
|
+
{ },
|
|
368
|
+
null,
|
|
369
|
+
['PureCloud OAuth'],
|
|
370
|
+
['application/json'],
|
|
371
|
+
['application/json']
|
|
372
|
+
);
|
|
373
|
+
}
|
|
374
|
+
|
|
375
|
+
/**
|
|
376
|
+
* Get the Open data ingestion rule versions.
|
|
377
|
+
*
|
|
378
|
+
* @param {String} topicId topicId
|
|
379
|
+
* @param {String} openId openId
|
|
380
|
+
* @param {Object} opts Optional parameters
|
|
381
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
382
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
383
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
384
|
+
* getSocialmediaTopicDataingestionrulesOpenOpenIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
385
|
+
*/
|
|
386
|
+
getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(topicId, openId, opts) {
|
|
387
|
+
opts = opts || {};
|
|
388
|
+
|
|
389
|
+
// verify the required parameter 'topicId' is set
|
|
390
|
+
if (topicId === undefined || topicId === null) {
|
|
391
|
+
throw 'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';
|
|
392
|
+
}
|
|
393
|
+
// verify the required parameter 'openId' is set
|
|
394
|
+
if (openId === undefined || openId === null) {
|
|
395
|
+
throw 'Missing the required parameter "openId" when calling getSocialmediaTopicDataingestionrulesOpenOpenIdVersions';
|
|
396
|
+
}
|
|
397
|
+
|
|
398
|
+
return this.apiClient.callApi(
|
|
399
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}/versions',
|
|
400
|
+
'GET',
|
|
401
|
+
{ 'topicId': topicId,'openId': openId },
|
|
402
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'includeDeleted': opts['includeDeleted'] },
|
|
403
|
+
{ },
|
|
404
|
+
{ },
|
|
405
|
+
null,
|
|
406
|
+
['PureCloud OAuth'],
|
|
407
|
+
['application/json'],
|
|
408
|
+
['application/json']
|
|
409
|
+
);
|
|
410
|
+
}
|
|
411
|
+
|
|
412
|
+
/**
|
|
413
|
+
* Get a single X (formally Twitter) data ingestion rule.
|
|
414
|
+
*
|
|
415
|
+
* @param {String} topicId topicId
|
|
416
|
+
* @param {String} twitterIngestionRuleId twitterIngestionRuleId
|
|
417
|
+
* @param {Object} opts Optional parameters
|
|
418
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
419
|
+
* getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
420
|
+
*/
|
|
421
|
+
getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(topicId, twitterIngestionRuleId, opts) {
|
|
422
|
+
opts = opts || {};
|
|
423
|
+
|
|
424
|
+
// verify the required parameter 'topicId' is set
|
|
425
|
+
if (topicId === undefined || topicId === null) {
|
|
426
|
+
throw 'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';
|
|
427
|
+
}
|
|
428
|
+
// verify the required parameter 'twitterIngestionRuleId' is set
|
|
429
|
+
if (twitterIngestionRuleId === undefined || twitterIngestionRuleId === null) {
|
|
430
|
+
throw 'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
return this.apiClient.callApi(
|
|
434
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}',
|
|
435
|
+
'GET',
|
|
436
|
+
{ 'topicId': topicId,'twitterIngestionRuleId': twitterIngestionRuleId },
|
|
437
|
+
{ 'includeDeleted': opts['includeDeleted'] },
|
|
438
|
+
{ },
|
|
439
|
+
{ },
|
|
440
|
+
null,
|
|
441
|
+
['PureCloud OAuth'],
|
|
442
|
+
['application/json'],
|
|
443
|
+
['application/json']
|
|
444
|
+
);
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
/**
|
|
448
|
+
* Get a single X (formally Twitter) data ingestion rule version.
|
|
449
|
+
*
|
|
450
|
+
* @param {String} topicId topicId
|
|
451
|
+
* @param {String} twitterIngestionRuleId twitterIngestionRuleId
|
|
452
|
+
* @param {String} dataIngestionRuleVersion version
|
|
453
|
+
* @param {Object} opts Optional parameters
|
|
454
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
|
|
455
|
+
* getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
456
|
+
*/
|
|
457
|
+
getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion(topicId, twitterIngestionRuleId, dataIngestionRuleVersion, opts) {
|
|
458
|
+
opts = opts || {};
|
|
459
|
+
|
|
460
|
+
// verify the required parameter 'topicId' is set
|
|
461
|
+
if (topicId === undefined || topicId === null) {
|
|
462
|
+
throw 'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';
|
|
463
|
+
}
|
|
464
|
+
// verify the required parameter 'twitterIngestionRuleId' is set
|
|
465
|
+
if (twitterIngestionRuleId === undefined || twitterIngestionRuleId === null) {
|
|
466
|
+
throw 'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';
|
|
467
|
+
}
|
|
468
|
+
// verify the required parameter 'dataIngestionRuleVersion' is set
|
|
469
|
+
if (dataIngestionRuleVersion === undefined || dataIngestionRuleVersion === null) {
|
|
470
|
+
throw 'Missing the required parameter "dataIngestionRuleVersion" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersion';
|
|
471
|
+
}
|
|
472
|
+
|
|
473
|
+
return this.apiClient.callApi(
|
|
474
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}/versions/{dataIngestionRuleVersion}',
|
|
475
|
+
'GET',
|
|
476
|
+
{ 'topicId': topicId,'twitterIngestionRuleId': twitterIngestionRuleId,'dataIngestionRuleVersion': dataIngestionRuleVersion },
|
|
477
|
+
{ 'includeDeleted': opts['includeDeleted'] },
|
|
478
|
+
{ },
|
|
479
|
+
{ },
|
|
480
|
+
null,
|
|
481
|
+
['PureCloud OAuth'],
|
|
482
|
+
['application/json'],
|
|
483
|
+
['application/json']
|
|
484
|
+
);
|
|
485
|
+
}
|
|
486
|
+
|
|
487
|
+
/**
|
|
488
|
+
* Get the Open data ingestion rule versions.
|
|
489
|
+
*
|
|
490
|
+
* @param {String} topicId topicId
|
|
491
|
+
* @param {String} twitterIngestionRuleId twitterIngestionRuleId
|
|
492
|
+
* @param {Object} opts Optional parameters
|
|
493
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
494
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
495
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
496
|
+
* getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
497
|
+
*/
|
|
498
|
+
getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions(topicId, twitterIngestionRuleId, opts) {
|
|
499
|
+
opts = opts || {};
|
|
500
|
+
|
|
501
|
+
// verify the required parameter 'topicId' is set
|
|
502
|
+
if (topicId === undefined || topicId === null) {
|
|
503
|
+
throw 'Missing the required parameter "topicId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';
|
|
504
|
+
}
|
|
505
|
+
// verify the required parameter 'twitterIngestionRuleId' is set
|
|
506
|
+
if (twitterIngestionRuleId === undefined || twitterIngestionRuleId === null) {
|
|
507
|
+
throw 'Missing the required parameter "twitterIngestionRuleId" when calling getSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleIdVersions';
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
return this.apiClient.callApi(
|
|
511
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}/versions',
|
|
512
|
+
'GET',
|
|
513
|
+
{ 'topicId': topicId,'twitterIngestionRuleId': twitterIngestionRuleId },
|
|
514
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'includeDeleted': opts['includeDeleted'] },
|
|
515
|
+
{ },
|
|
516
|
+
{ },
|
|
517
|
+
null,
|
|
518
|
+
['PureCloud OAuth'],
|
|
519
|
+
['application/json'],
|
|
520
|
+
['application/json']
|
|
521
|
+
);
|
|
522
|
+
}
|
|
523
|
+
|
|
524
|
+
/**
|
|
525
|
+
* Retrieve all social topics.
|
|
526
|
+
*
|
|
527
|
+
* @param {Object} opts Optional parameters
|
|
528
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
529
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
530
|
+
* @param {Array.<String>} opts.divisionIds One or more division IDs. If nothing is provided, the social topics associated withthe list of divisions that the user has access to will be returned.
|
|
531
|
+
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
532
|
+
* getSocialmediaTopics is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
533
|
+
*/
|
|
534
|
+
getSocialmediaTopics(opts) {
|
|
535
|
+
opts = opts || {};
|
|
536
|
+
|
|
537
|
+
|
|
538
|
+
return this.apiClient.callApi(
|
|
539
|
+
'/api/v2/socialmedia/topics',
|
|
540
|
+
'GET',
|
|
541
|
+
{ },
|
|
542
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'],'divisionIds': this.apiClient.buildCollectionParam(opts['divisionIds'], 'multi'),'includeDeleted': opts['includeDeleted'] },
|
|
543
|
+
{ },
|
|
544
|
+
{ },
|
|
545
|
+
null,
|
|
546
|
+
['PureCloud OAuth'],
|
|
547
|
+
['application/json'],
|
|
548
|
+
['application/json']
|
|
549
|
+
);
|
|
550
|
+
}
|
|
551
|
+
|
|
552
|
+
/**
|
|
553
|
+
* Update a social topic.
|
|
554
|
+
*
|
|
555
|
+
* @param {String} topicId topicId
|
|
556
|
+
* @param {Object} opts Optional parameters
|
|
557
|
+
* @param {Object} opts.body
|
|
558
|
+
* patchSocialmediaTopic is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
559
|
+
*/
|
|
560
|
+
patchSocialmediaTopic(topicId, opts) {
|
|
561
|
+
opts = opts || {};
|
|
562
|
+
|
|
563
|
+
// verify the required parameter 'topicId' is set
|
|
564
|
+
if (topicId === undefined || topicId === null) {
|
|
565
|
+
throw 'Missing the required parameter "topicId" when calling patchSocialmediaTopic';
|
|
566
|
+
}
|
|
567
|
+
|
|
568
|
+
return this.apiClient.callApi(
|
|
569
|
+
'/api/v2/socialmedia/topics/{topicId}',
|
|
570
|
+
'PATCH',
|
|
571
|
+
{ 'topicId': topicId },
|
|
572
|
+
{ },
|
|
573
|
+
{ },
|
|
574
|
+
{ },
|
|
575
|
+
opts['body'],
|
|
576
|
+
['PureCloud OAuth'],
|
|
577
|
+
['application/json'],
|
|
578
|
+
['application/json']
|
|
579
|
+
);
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
/**
|
|
583
|
+
* Update the status of a Facebook data ingestion rule.
|
|
584
|
+
*
|
|
585
|
+
* @param {String} topicId topicId
|
|
586
|
+
* @param {String} facebookIngestionRuleId facebookIngestionRuleId
|
|
587
|
+
* @param {Object} opts Optional parameters
|
|
588
|
+
* @param {Object} opts.body
|
|
589
|
+
* patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
590
|
+
*/
|
|
591
|
+
patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId, facebookIngestionRuleId, opts) {
|
|
592
|
+
opts = opts || {};
|
|
593
|
+
|
|
594
|
+
// verify the required parameter 'topicId' is set
|
|
595
|
+
if (topicId === undefined || topicId === null) {
|
|
596
|
+
throw 'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';
|
|
597
|
+
}
|
|
598
|
+
// verify the required parameter 'facebookIngestionRuleId' is set
|
|
599
|
+
if (facebookIngestionRuleId === undefined || facebookIngestionRuleId === null) {
|
|
600
|
+
throw 'Missing the required parameter "facebookIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';
|
|
601
|
+
}
|
|
602
|
+
|
|
603
|
+
return this.apiClient.callApi(
|
|
604
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}',
|
|
605
|
+
'PATCH',
|
|
606
|
+
{ 'topicId': topicId,'facebookIngestionRuleId': facebookIngestionRuleId },
|
|
607
|
+
{ },
|
|
608
|
+
{ },
|
|
609
|
+
{ },
|
|
610
|
+
opts['body'],
|
|
611
|
+
['PureCloud OAuth'],
|
|
612
|
+
['application/json'],
|
|
613
|
+
['application/json']
|
|
614
|
+
);
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
/**
|
|
618
|
+
* Update the status of a open data ingestion rule.
|
|
619
|
+
*
|
|
620
|
+
* @param {String} topicId topicId
|
|
621
|
+
* @param {String} openId openId
|
|
622
|
+
* @param {Object} opts Optional parameters
|
|
623
|
+
* @param {Object} opts.body
|
|
624
|
+
* patchSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
625
|
+
*/
|
|
626
|
+
patchSocialmediaTopicDataingestionrulesOpenOpenId(topicId, openId, opts) {
|
|
627
|
+
opts = opts || {};
|
|
628
|
+
|
|
629
|
+
// verify the required parameter 'topicId' is set
|
|
630
|
+
if (topicId === undefined || topicId === null) {
|
|
631
|
+
throw 'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';
|
|
632
|
+
}
|
|
633
|
+
// verify the required parameter 'openId' is set
|
|
634
|
+
if (openId === undefined || openId === null) {
|
|
635
|
+
throw 'Missing the required parameter "openId" when calling patchSocialmediaTopicDataingestionrulesOpenOpenId';
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
return this.apiClient.callApi(
|
|
639
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}',
|
|
640
|
+
'PATCH',
|
|
641
|
+
{ 'topicId': topicId,'openId': openId },
|
|
642
|
+
{ },
|
|
643
|
+
{ },
|
|
644
|
+
{ },
|
|
645
|
+
opts['body'],
|
|
646
|
+
['PureCloud OAuth'],
|
|
647
|
+
['application/json'],
|
|
648
|
+
['application/json']
|
|
649
|
+
);
|
|
650
|
+
}
|
|
651
|
+
|
|
652
|
+
/**
|
|
653
|
+
* Update the status of a X (formally Twitter) data ingestion rule.
|
|
654
|
+
*
|
|
655
|
+
* @param {String} topicId topicId
|
|
656
|
+
* @param {String} twitterIngestionRuleId twitterIngestionRuleId
|
|
657
|
+
* @param {Object} opts Optional parameters
|
|
658
|
+
* @param {Object} opts.body
|
|
659
|
+
* patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
660
|
+
*/
|
|
661
|
+
patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(topicId, twitterIngestionRuleId, opts) {
|
|
662
|
+
opts = opts || {};
|
|
663
|
+
|
|
664
|
+
// verify the required parameter 'topicId' is set
|
|
665
|
+
if (topicId === undefined || topicId === null) {
|
|
666
|
+
throw 'Missing the required parameter "topicId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';
|
|
667
|
+
}
|
|
668
|
+
// verify the required parameter 'twitterIngestionRuleId' is set
|
|
669
|
+
if (twitterIngestionRuleId === undefined || twitterIngestionRuleId === null) {
|
|
670
|
+
throw 'Missing the required parameter "twitterIngestionRuleId" when calling patchSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';
|
|
671
|
+
}
|
|
672
|
+
|
|
673
|
+
return this.apiClient.callApi(
|
|
674
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}',
|
|
675
|
+
'PATCH',
|
|
676
|
+
{ 'topicId': topicId,'twitterIngestionRuleId': twitterIngestionRuleId },
|
|
677
|
+
{ },
|
|
678
|
+
{ },
|
|
679
|
+
{ },
|
|
680
|
+
opts['body'],
|
|
681
|
+
['PureCloud OAuth'],
|
|
682
|
+
['application/json'],
|
|
683
|
+
['application/json']
|
|
684
|
+
);
|
|
685
|
+
}
|
|
686
|
+
|
|
687
|
+
/**
|
|
688
|
+
* Create an Facebook data ingestion rule.
|
|
689
|
+
*
|
|
690
|
+
* @param {String} topicId topicId
|
|
691
|
+
* @param {Object} opts Optional parameters
|
|
692
|
+
* @param {Object} opts.body
|
|
693
|
+
* postSocialmediaTopicDataingestionrulesFacebook is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
694
|
+
*/
|
|
695
|
+
postSocialmediaTopicDataingestionrulesFacebook(topicId, opts) {
|
|
696
|
+
opts = opts || {};
|
|
697
|
+
|
|
698
|
+
// verify the required parameter 'topicId' is set
|
|
699
|
+
if (topicId === undefined || topicId === null) {
|
|
700
|
+
throw 'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesFacebook';
|
|
701
|
+
}
|
|
702
|
+
|
|
703
|
+
return this.apiClient.callApi(
|
|
704
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook',
|
|
705
|
+
'POST',
|
|
706
|
+
{ 'topicId': topicId },
|
|
707
|
+
{ },
|
|
708
|
+
{ },
|
|
709
|
+
{ },
|
|
710
|
+
opts['body'],
|
|
711
|
+
['PureCloud OAuth'],
|
|
712
|
+
['application/json'],
|
|
713
|
+
['application/json']
|
|
714
|
+
);
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
/**
|
|
718
|
+
* Create an open data ingestion rule.
|
|
719
|
+
*
|
|
720
|
+
* @param {String} topicId topicId
|
|
721
|
+
* @param {Object} opts Optional parameters
|
|
722
|
+
* @param {Object} opts.body
|
|
723
|
+
* postSocialmediaTopicDataingestionrulesOpen is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
724
|
+
*/
|
|
725
|
+
postSocialmediaTopicDataingestionrulesOpen(topicId, opts) {
|
|
726
|
+
opts = opts || {};
|
|
727
|
+
|
|
728
|
+
// verify the required parameter 'topicId' is set
|
|
729
|
+
if (topicId === undefined || topicId === null) {
|
|
730
|
+
throw 'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpen';
|
|
731
|
+
}
|
|
732
|
+
|
|
733
|
+
return this.apiClient.callApi(
|
|
734
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open',
|
|
735
|
+
'POST',
|
|
736
|
+
{ 'topicId': topicId },
|
|
737
|
+
{ },
|
|
738
|
+
{ },
|
|
739
|
+
{ },
|
|
740
|
+
opts['body'],
|
|
741
|
+
['PureCloud OAuth'],
|
|
742
|
+
['application/json'],
|
|
743
|
+
['application/json']
|
|
744
|
+
);
|
|
745
|
+
}
|
|
746
|
+
|
|
747
|
+
/**
|
|
748
|
+
* Create an twitter data ingestion rule.
|
|
749
|
+
*
|
|
750
|
+
* @param {String} topicId topicId
|
|
751
|
+
* @param {Object} opts Optional parameters
|
|
752
|
+
* @param {Object} opts.body
|
|
753
|
+
* postSocialmediaTopicDataingestionrulesTwitter is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
754
|
+
*/
|
|
755
|
+
postSocialmediaTopicDataingestionrulesTwitter(topicId, opts) {
|
|
756
|
+
opts = opts || {};
|
|
757
|
+
|
|
758
|
+
// verify the required parameter 'topicId' is set
|
|
759
|
+
if (topicId === undefined || topicId === null) {
|
|
760
|
+
throw 'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesTwitter';
|
|
761
|
+
}
|
|
762
|
+
|
|
763
|
+
return this.apiClient.callApi(
|
|
764
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter',
|
|
765
|
+
'POST',
|
|
766
|
+
{ 'topicId': topicId },
|
|
767
|
+
{ },
|
|
768
|
+
{ },
|
|
769
|
+
{ },
|
|
770
|
+
opts['body'],
|
|
771
|
+
['PureCloud OAuth'],
|
|
772
|
+
['application/json'],
|
|
773
|
+
['application/json']
|
|
774
|
+
);
|
|
775
|
+
}
|
|
776
|
+
|
|
777
|
+
/**
|
|
778
|
+
* Create a social topic.
|
|
779
|
+
*
|
|
780
|
+
* @param {Object} opts Optional parameters
|
|
781
|
+
* @param {Object} opts.body
|
|
782
|
+
* postSocialmediaTopics is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
783
|
+
*/
|
|
784
|
+
postSocialmediaTopics(opts) {
|
|
785
|
+
opts = opts || {};
|
|
786
|
+
|
|
787
|
+
|
|
788
|
+
return this.apiClient.callApi(
|
|
789
|
+
'/api/v2/socialmedia/topics',
|
|
790
|
+
'POST',
|
|
791
|
+
{ },
|
|
792
|
+
{ },
|
|
793
|
+
{ },
|
|
794
|
+
{ },
|
|
795
|
+
opts['body'],
|
|
796
|
+
['PureCloud OAuth'],
|
|
797
|
+
['application/json'],
|
|
798
|
+
['application/json']
|
|
799
|
+
);
|
|
800
|
+
}
|
|
801
|
+
|
|
802
|
+
/**
|
|
803
|
+
* Update the Facebook data ingestion rule.
|
|
804
|
+
*
|
|
805
|
+
* @param {String} topicId topicId
|
|
806
|
+
* @param {String} facebookIngestionRuleId facebookIngestionRuleId
|
|
807
|
+
* @param {Object} opts Optional parameters
|
|
808
|
+
* @param {Object} opts.body
|
|
809
|
+
* putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
810
|
+
*/
|
|
811
|
+
putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId(topicId, facebookIngestionRuleId, opts) {
|
|
812
|
+
opts = opts || {};
|
|
813
|
+
|
|
814
|
+
// verify the required parameter 'topicId' is set
|
|
815
|
+
if (topicId === undefined || topicId === null) {
|
|
816
|
+
throw 'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';
|
|
817
|
+
}
|
|
818
|
+
// verify the required parameter 'facebookIngestionRuleId' is set
|
|
819
|
+
if (facebookIngestionRuleId === undefined || facebookIngestionRuleId === null) {
|
|
820
|
+
throw 'Missing the required parameter "facebookIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesFacebookFacebookIngestionRuleId';
|
|
821
|
+
}
|
|
822
|
+
|
|
823
|
+
return this.apiClient.callApi(
|
|
824
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/facebook/{facebookIngestionRuleId}',
|
|
825
|
+
'PUT',
|
|
826
|
+
{ 'topicId': topicId,'facebookIngestionRuleId': facebookIngestionRuleId },
|
|
827
|
+
{ },
|
|
828
|
+
{ },
|
|
829
|
+
{ },
|
|
830
|
+
opts['body'],
|
|
831
|
+
['PureCloud OAuth'],
|
|
832
|
+
['application/json'],
|
|
833
|
+
['application/json']
|
|
834
|
+
);
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
/**
|
|
838
|
+
* Update the open data ingestion rule.
|
|
839
|
+
*
|
|
840
|
+
* @param {String} topicId topicId
|
|
841
|
+
* @param {String} openId openId
|
|
842
|
+
* @param {Object} opts Optional parameters
|
|
843
|
+
* @param {Object} opts.body
|
|
844
|
+
* putSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
845
|
+
*/
|
|
846
|
+
putSocialmediaTopicDataingestionrulesOpenOpenId(topicId, openId, opts) {
|
|
847
|
+
opts = opts || {};
|
|
848
|
+
|
|
849
|
+
// verify the required parameter 'topicId' is set
|
|
850
|
+
if (topicId === undefined || topicId === null) {
|
|
851
|
+
throw 'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';
|
|
852
|
+
}
|
|
853
|
+
// verify the required parameter 'openId' is set
|
|
854
|
+
if (openId === undefined || openId === null) {
|
|
855
|
+
throw 'Missing the required parameter "openId" when calling putSocialmediaTopicDataingestionrulesOpenOpenId';
|
|
856
|
+
}
|
|
857
|
+
|
|
858
|
+
return this.apiClient.callApi(
|
|
859
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{openId}',
|
|
860
|
+
'PUT',
|
|
861
|
+
{ 'topicId': topicId,'openId': openId },
|
|
862
|
+
{ },
|
|
863
|
+
{ },
|
|
864
|
+
{ },
|
|
865
|
+
opts['body'],
|
|
866
|
+
['PureCloud OAuth'],
|
|
867
|
+
['application/json'],
|
|
868
|
+
['application/json']
|
|
869
|
+
);
|
|
870
|
+
}
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Update the X (formally Twitter) data ingestion rule.
|
|
874
|
+
*
|
|
875
|
+
* @param {String} topicId topicId
|
|
876
|
+
* @param {String} twitterIngestionRuleId twitterIngestionRuleId
|
|
877
|
+
* @param {Object} opts Optional parameters
|
|
878
|
+
* @param {Object} opts.body
|
|
879
|
+
* putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
880
|
+
*/
|
|
881
|
+
putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId(topicId, twitterIngestionRuleId, opts) {
|
|
882
|
+
opts = opts || {};
|
|
883
|
+
|
|
884
|
+
// verify the required parameter 'topicId' is set
|
|
885
|
+
if (topicId === undefined || topicId === null) {
|
|
886
|
+
throw 'Missing the required parameter "topicId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';
|
|
887
|
+
}
|
|
888
|
+
// verify the required parameter 'twitterIngestionRuleId' is set
|
|
889
|
+
if (twitterIngestionRuleId === undefined || twitterIngestionRuleId === null) {
|
|
890
|
+
throw 'Missing the required parameter "twitterIngestionRuleId" when calling putSocialmediaTopicDataingestionrulesTwitterTwitterIngestionRuleId';
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
return this.apiClient.callApi(
|
|
894
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/twitter/{twitterIngestionRuleId}',
|
|
895
|
+
'PUT',
|
|
896
|
+
{ 'topicId': topicId,'twitterIngestionRuleId': twitterIngestionRuleId },
|
|
897
|
+
{ },
|
|
898
|
+
{ },
|
|
899
|
+
{ },
|
|
900
|
+
opts['body'],
|
|
901
|
+
['PureCloud OAuth'],
|
|
902
|
+
['application/json'],
|
|
903
|
+
['application/json']
|
|
904
|
+
);
|
|
905
|
+
}
|
|
906
|
+
|
|
907
|
+
}
|
|
908
|
+
|
|
909
|
+
|
|
910
|
+
export default SocialMediaApi;
|