purecloud-platform-client-v2 221.0.0 → 223.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 +1032 -524
- package/dist/web-amd/purecloud-platform-client-v2.js +1032 -524
- package/dist/web-amd/purecloud-platform-client-v2.min.js +1 -1
- package/dist/web-cjs/bundle.js +498 -392
- package/dist/web-cjs/purecloud-platform-client-v2.js +498 -392
- package/dist/web-cjs/purecloud-platform-client-v2.min.js +1 -1
- package/index.d.ts +1408 -1008
- package/package.json +1 -1
- package/src/purecloud-platform-client-v2/ApiClient.js +1 -1
- package/src/purecloud-platform-client-v2/api/AgentAssistantsApi.js +3 -2
- 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 +1 -1
- package/src/purecloud-platform-client-v2/api/ArchitectApi.js +3 -2
- 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/BusinessRulesApi.js +5 -6
- 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 +154 -7
- package/src/purecloud-platform-client-v2/api/DataExtensionsApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/DataPrivacyApi.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 +3 -3
- 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 +150 -1
- package/src/purecloud-platform-client-v2/api/JourneyApi.js +1 -1
- package/src/purecloud-platform-client-v2/api/KnowledgeApi.js +1 -1
- 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 +2 -3
- 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 +1 -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 +1 -1
- 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 +1 -1
- 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 +71 -8
- package/src/purecloud-platform-client-v2/api/SpeechTextAnalyticsApi.js +51 -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 +2 -2
- 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 +3 -2
- 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 +514 -416
- package/src/purecloud-platform-client-v2/index.js +1 -1
|
@@ -5,7 +5,7 @@ class IntegrationsApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* Integrations service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/IntegrationsApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 223.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -636,6 +636,103 @@ class IntegrationsApi {
|
|
|
636
636
|
);
|
|
637
637
|
}
|
|
638
638
|
|
|
639
|
+
/**
|
|
640
|
+
* Get a specific Bot details
|
|
641
|
+
*
|
|
642
|
+
* @param {String} integrationId The integration ID for this group of bots
|
|
643
|
+
* @param {String} botId The bot ID for this bot
|
|
644
|
+
* @param {Object} opts Optional parameters
|
|
645
|
+
* @param {String} opts.version Specific Version
|
|
646
|
+
* getIntegrationsBotconnectorBot is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
647
|
+
*/
|
|
648
|
+
getIntegrationsBotconnectorBot(integrationId, botId, opts) {
|
|
649
|
+
opts = opts || {};
|
|
650
|
+
|
|
651
|
+
// verify the required parameter 'integrationId' is set
|
|
652
|
+
if (integrationId === undefined || integrationId === null) {
|
|
653
|
+
throw 'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBot';
|
|
654
|
+
}
|
|
655
|
+
// verify the required parameter 'botId' is set
|
|
656
|
+
if (botId === undefined || botId === null) {
|
|
657
|
+
throw 'Missing the required parameter "botId" when calling getIntegrationsBotconnectorBot';
|
|
658
|
+
}
|
|
659
|
+
|
|
660
|
+
return this.apiClient.callApi(
|
|
661
|
+
'/api/v2/integrations/botconnectors/{integrationId}/bots/{botId}',
|
|
662
|
+
'GET',
|
|
663
|
+
{ 'integrationId': integrationId,'botId': botId },
|
|
664
|
+
{ 'version': opts['version'] },
|
|
665
|
+
{ },
|
|
666
|
+
{ },
|
|
667
|
+
null,
|
|
668
|
+
['PureCloud OAuth'],
|
|
669
|
+
['application/json'],
|
|
670
|
+
['application/json']
|
|
671
|
+
);
|
|
672
|
+
}
|
|
673
|
+
|
|
674
|
+
/**
|
|
675
|
+
* Get the list of bots for this integration.
|
|
676
|
+
*
|
|
677
|
+
* @param {String} integrationId The integration ID for this group of bots.
|
|
678
|
+
* @param {Object} opts Optional parameters
|
|
679
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
680
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
681
|
+
* getIntegrationsBotconnectorBots is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
682
|
+
*/
|
|
683
|
+
getIntegrationsBotconnectorBots(integrationId, opts) {
|
|
684
|
+
opts = opts || {};
|
|
685
|
+
|
|
686
|
+
// verify the required parameter 'integrationId' is set
|
|
687
|
+
if (integrationId === undefined || integrationId === null) {
|
|
688
|
+
throw 'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBots';
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
return this.apiClient.callApi(
|
|
692
|
+
'/api/v2/integrations/botconnectors/{integrationId}/bots',
|
|
693
|
+
'GET',
|
|
694
|
+
{ 'integrationId': integrationId },
|
|
695
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
|
|
696
|
+
{ },
|
|
697
|
+
{ },
|
|
698
|
+
null,
|
|
699
|
+
['PureCloud OAuth'],
|
|
700
|
+
['application/json'],
|
|
701
|
+
['application/json']
|
|
702
|
+
);
|
|
703
|
+
}
|
|
704
|
+
|
|
705
|
+
/**
|
|
706
|
+
* Get the summary list of bots for this integration.
|
|
707
|
+
*
|
|
708
|
+
* @param {String} integrationId The integration ID for this group of bots.
|
|
709
|
+
* @param {Object} opts Optional parameters
|
|
710
|
+
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
711
|
+
* @param {Number} opts.pageSize Page size (default to 25)
|
|
712
|
+
* getIntegrationsBotconnectorBotsSummaries is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
713
|
+
*/
|
|
714
|
+
getIntegrationsBotconnectorBotsSummaries(integrationId, opts) {
|
|
715
|
+
opts = opts || {};
|
|
716
|
+
|
|
717
|
+
// verify the required parameter 'integrationId' is set
|
|
718
|
+
if (integrationId === undefined || integrationId === null) {
|
|
719
|
+
throw 'Missing the required parameter "integrationId" when calling getIntegrationsBotconnectorBotsSummaries';
|
|
720
|
+
}
|
|
721
|
+
|
|
722
|
+
return this.apiClient.callApi(
|
|
723
|
+
'/api/v2/integrations/botconnectors/{integrationId}/bots/summaries',
|
|
724
|
+
'GET',
|
|
725
|
+
{ 'integrationId': integrationId },
|
|
726
|
+
{ 'pageNumber': opts['pageNumber'],'pageSize': opts['pageSize'] },
|
|
727
|
+
{ },
|
|
728
|
+
{ },
|
|
729
|
+
null,
|
|
730
|
+
['PureCloud OAuth'],
|
|
731
|
+
['application/json'],
|
|
732
|
+
['application/json']
|
|
733
|
+
);
|
|
734
|
+
}
|
|
735
|
+
|
|
639
736
|
/**
|
|
640
737
|
* Get a specific botConnector bot, plus versions, for this integration
|
|
641
738
|
*
|
|
@@ -2115,6 +2212,58 @@ class IntegrationsApi {
|
|
|
2115
2212
|
);
|
|
2116
2213
|
}
|
|
2117
2214
|
|
|
2215
|
+
/**
|
|
2216
|
+
* Send an incoming message to the bot.
|
|
2217
|
+
*
|
|
2218
|
+
* @param {Object} body Incoming Message Request
|
|
2219
|
+
* postIntegrationsBotconnectorsIncomingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2220
|
+
*/
|
|
2221
|
+
postIntegrationsBotconnectorsIncomingMessages(body) {
|
|
2222
|
+
// verify the required parameter 'body' is set
|
|
2223
|
+
if (body === undefined || body === null) {
|
|
2224
|
+
throw 'Missing the required parameter "body" when calling postIntegrationsBotconnectorsIncomingMessages';
|
|
2225
|
+
}
|
|
2226
|
+
|
|
2227
|
+
return this.apiClient.callApi(
|
|
2228
|
+
'/api/v2/integrations/botconnectors/incoming/messages',
|
|
2229
|
+
'POST',
|
|
2230
|
+
{ },
|
|
2231
|
+
{ },
|
|
2232
|
+
{ },
|
|
2233
|
+
{ },
|
|
2234
|
+
body,
|
|
2235
|
+
['PureCloud OAuth'],
|
|
2236
|
+
['application/json'],
|
|
2237
|
+
['application/json']
|
|
2238
|
+
);
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
/**
|
|
2242
|
+
* Send an outgoing message to the end user.
|
|
2243
|
+
*
|
|
2244
|
+
* @param {Object} body Outgoing Message Request
|
|
2245
|
+
* postIntegrationsBotconnectorsOutgoingMessages is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
2246
|
+
*/
|
|
2247
|
+
postIntegrationsBotconnectorsOutgoingMessages(body) {
|
|
2248
|
+
// verify the required parameter 'body' is set
|
|
2249
|
+
if (body === undefined || body === null) {
|
|
2250
|
+
throw 'Missing the required parameter "body" when calling postIntegrationsBotconnectorsOutgoingMessages';
|
|
2251
|
+
}
|
|
2252
|
+
|
|
2253
|
+
return this.apiClient.callApi(
|
|
2254
|
+
'/api/v2/integrations/botconnectors/outgoing/messages',
|
|
2255
|
+
'POST',
|
|
2256
|
+
{ },
|
|
2257
|
+
{ },
|
|
2258
|
+
{ },
|
|
2259
|
+
{ },
|
|
2260
|
+
body,
|
|
2261
|
+
['PureCloud OAuth'],
|
|
2262
|
+
['application/json'],
|
|
2263
|
+
['application/json']
|
|
2264
|
+
);
|
|
2265
|
+
}
|
|
2266
|
+
|
|
2118
2267
|
/**
|
|
2119
2268
|
* Create a set of credentials
|
|
2120
2269
|
*
|
|
@@ -5,7 +5,7 @@ class LogCaptureApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* LogCapture service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/LogCaptureApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 223.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -147,7 +147,6 @@ class LogCaptureApi {
|
|
|
147
147
|
* Query collected log entries. It returns a limited amount of records, to get all records use download endpoint.
|
|
148
148
|
*
|
|
149
149
|
* @param {Object} opts Optional parameters
|
|
150
|
-
* @param {String} opts.before The cursor that points to the start of the set of entities that has been returned.
|
|
151
150
|
* @param {String} opts.after The cursor that points to the end of the set of entities that has been returned.
|
|
152
151
|
* @param {String} opts.pageSize Number of entities to return. Maximum of 200.
|
|
153
152
|
* @param {Object} opts.body
|
|
@@ -160,7 +159,7 @@ class LogCaptureApi {
|
|
|
160
159
|
'/api/v2/diagnostics/logcapture/browser/entries/query',
|
|
161
160
|
'POST',
|
|
162
161
|
{ },
|
|
163
|
-
{ '
|
|
162
|
+
{ 'after': opts['after'],'pageSize': opts['pageSize'] },
|
|
164
163
|
{ },
|
|
165
164
|
{ },
|
|
166
165
|
opts['body'],
|
|
@@ -5,7 +5,7 @@ class SocialMediaApi {
|
|
|
5
5
|
/**
|
|
6
6
|
* SocialMedia service.
|
|
7
7
|
* @module purecloud-platform-client-v2/api/SocialMediaApi
|
|
8
|
-
* @version
|
|
8
|
+
* @version 223.0.0
|
|
9
9
|
*/
|
|
10
10
|
|
|
11
11
|
/**
|
|
@@ -141,7 +141,6 @@ class SocialMediaApi {
|
|
|
141
141
|
* @param {String} openId openId
|
|
142
142
|
* @param {Object} opts Optional parameters
|
|
143
143
|
* @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)
|
|
144
|
-
* deleteSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
145
144
|
*/
|
|
146
145
|
deleteSocialmediaTopicDataingestionrulesOpenOpenId(topicId, openId, opts) {
|
|
147
146
|
opts = opts || {};
|
|
@@ -542,7 +541,6 @@ class SocialMediaApi {
|
|
|
542
541
|
* @param {String} openId openId
|
|
543
542
|
* @param {Object} opts Optional parameters
|
|
544
543
|
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
545
|
-
* getSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
546
544
|
*/
|
|
547
545
|
getSocialmediaTopicDataingestionrulesOpenOpenId(topicId, openId, opts) {
|
|
548
546
|
opts = opts || {};
|
|
@@ -578,7 +576,6 @@ class SocialMediaApi {
|
|
|
578
576
|
* @param {String} dataIngestionRuleVersion version
|
|
579
577
|
* @param {Object} opts Optional parameters
|
|
580
578
|
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted item in the result.
|
|
581
|
-
* getSocialmediaTopicDataingestionrulesOpenOpenIdVersion is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
582
579
|
*/
|
|
583
580
|
getSocialmediaTopicDataingestionrulesOpenOpenIdVersion(topicId, openId, dataIngestionRuleVersion, opts) {
|
|
584
581
|
opts = opts || {};
|
|
@@ -619,7 +616,6 @@ class SocialMediaApi {
|
|
|
619
616
|
* @param {Number} opts.pageNumber Page number (default to 1)
|
|
620
617
|
* @param {Number} opts.pageSize Page size (default to 25)
|
|
621
618
|
* @param {Boolean} opts.includeDeleted Determines whether to include soft-deleted items in the result.
|
|
622
|
-
* getSocialmediaTopicDataingestionrulesOpenOpenIdVersions is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
623
619
|
*/
|
|
624
620
|
getSocialmediaTopicDataingestionrulesOpenOpenIdVersions(topicId, openId, opts) {
|
|
625
621
|
opts = opts || {};
|
|
@@ -853,7 +849,6 @@ class SocialMediaApi {
|
|
|
853
849
|
* @param {String} openId openId
|
|
854
850
|
* @param {Object} opts Optional parameters
|
|
855
851
|
* @param {Object} opts.body
|
|
856
|
-
* patchSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
857
852
|
*/
|
|
858
853
|
patchSocialmediaTopicDataingestionrulesOpenOpenId(topicId, openId, opts) {
|
|
859
854
|
opts = opts || {};
|
|
@@ -1053,7 +1048,6 @@ class SocialMediaApi {
|
|
|
1053
1048
|
* @param {String} topicId topicId
|
|
1054
1049
|
* @param {Object} opts Optional parameters
|
|
1055
1050
|
* @param {Object} opts.body
|
|
1056
|
-
* postSocialmediaTopicDataingestionrulesOpen is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1057
1051
|
*/
|
|
1058
1052
|
postSocialmediaTopicDataingestionrulesOpen(topicId, opts) {
|
|
1059
1053
|
opts = opts || {};
|
|
@@ -1077,6 +1071,76 @@ class SocialMediaApi {
|
|
|
1077
1071
|
);
|
|
1078
1072
|
}
|
|
1079
1073
|
|
|
1074
|
+
/**
|
|
1075
|
+
* Ingest a list of Open Social Messages
|
|
1076
|
+
* Ingest a list of open social messages to an ingestion rule on a topic. This endpoint will ingest and enrich these messages. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least social scope.
|
|
1077
|
+
* @param {String} topicId Topic ID
|
|
1078
|
+
* @param {String} ruleId Data Ingestion Rule ID
|
|
1079
|
+
* @param {Array.<Object>} body NormalizedMessage
|
|
1080
|
+
*/
|
|
1081
|
+
postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk(topicId, ruleId, body) {
|
|
1082
|
+
// verify the required parameter 'topicId' is set
|
|
1083
|
+
if (topicId === undefined || topicId === null) {
|
|
1084
|
+
throw 'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';
|
|
1085
|
+
}
|
|
1086
|
+
// verify the required parameter 'ruleId' is set
|
|
1087
|
+
if (ruleId === undefined || ruleId === null) {
|
|
1088
|
+
throw 'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';
|
|
1089
|
+
}
|
|
1090
|
+
// verify the required parameter 'body' is set
|
|
1091
|
+
if (body === undefined || body === null) {
|
|
1092
|
+
throw 'Missing the required parameter "body" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdMessagesBulk';
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
return this.apiClient.callApi(
|
|
1096
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{ruleId}/messages/bulk',
|
|
1097
|
+
'POST',
|
|
1098
|
+
{ 'topicId': topicId,'ruleId': ruleId },
|
|
1099
|
+
{ },
|
|
1100
|
+
{ },
|
|
1101
|
+
{ },
|
|
1102
|
+
body,
|
|
1103
|
+
['PureCloud OAuth'],
|
|
1104
|
+
['application/json'],
|
|
1105
|
+
['application/json']
|
|
1106
|
+
);
|
|
1107
|
+
}
|
|
1108
|
+
|
|
1109
|
+
/**
|
|
1110
|
+
* Ingest a list of Open Social Reactions
|
|
1111
|
+
* Ingest a list of open social reactions to an ingestion rule on a topic. This endpoint will ingest these reactions. In order to call this endpoint you will need OAuth token generated using OAuth client credentials authorized with at least social scope.
|
|
1112
|
+
* @param {String} topicId Topic ID
|
|
1113
|
+
* @param {String} ruleId Data Ingestion Rule ID
|
|
1114
|
+
* @param {Object} body NormalizedEvent
|
|
1115
|
+
*/
|
|
1116
|
+
postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk(topicId, ruleId, body) {
|
|
1117
|
+
// verify the required parameter 'topicId' is set
|
|
1118
|
+
if (topicId === undefined || topicId === null) {
|
|
1119
|
+
throw 'Missing the required parameter "topicId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';
|
|
1120
|
+
}
|
|
1121
|
+
// verify the required parameter 'ruleId' is set
|
|
1122
|
+
if (ruleId === undefined || ruleId === null) {
|
|
1123
|
+
throw 'Missing the required parameter "ruleId" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';
|
|
1124
|
+
}
|
|
1125
|
+
// verify the required parameter 'body' is set
|
|
1126
|
+
if (body === undefined || body === null) {
|
|
1127
|
+
throw 'Missing the required parameter "body" when calling postSocialmediaTopicDataingestionrulesOpenRuleIdReactionsBulk';
|
|
1128
|
+
}
|
|
1129
|
+
|
|
1130
|
+
return this.apiClient.callApi(
|
|
1131
|
+
'/api/v2/socialmedia/topics/{topicId}/dataingestionrules/open/{ruleId}/reactions/bulk',
|
|
1132
|
+
'POST',
|
|
1133
|
+
{ 'topicId': topicId,'ruleId': ruleId },
|
|
1134
|
+
{ },
|
|
1135
|
+
{ },
|
|
1136
|
+
{ },
|
|
1137
|
+
body,
|
|
1138
|
+
['PureCloud OAuth'],
|
|
1139
|
+
['application/json'],
|
|
1140
|
+
['application/json']
|
|
1141
|
+
);
|
|
1142
|
+
}
|
|
1143
|
+
|
|
1080
1144
|
/**
|
|
1081
1145
|
* Create an twitter data ingestion rule.
|
|
1082
1146
|
*
|
|
@@ -1225,7 +1289,6 @@ class SocialMediaApi {
|
|
|
1225
1289
|
* @param {String} openId openId
|
|
1226
1290
|
* @param {Object} opts Optional parameters
|
|
1227
1291
|
* @param {Object} opts.body
|
|
1228
|
-
* putSocialmediaTopicDataingestionrulesOpenOpenId is a preview method and is subject to both breaking and non-breaking changes at any time without notice
|
|
1229
1292
|
*/
|
|
1230
1293
|
putSocialmediaTopicDataingestionrulesOpenOpenId(topicId, openId, opts) {
|
|
1231
1294
|
opts = opts || {};
|