purecloudplatformclientv2 42.0.0 → 43.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (440) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/docs/ADFS.md +1 -1
  4. data/docs/ActionEntityListing.md +2 -2
  5. data/docs/AgentActivityEntityListing.md +2 -2
  6. data/docs/AnalyticsApi.md +66 -0
  7. data/docs/AnalyticsSurvey.md +1 -0
  8. data/docs/AttemptLimitsEntityListing.md +2 -2
  9. data/docs/AttributeEntityListing.md +2 -2
  10. data/docs/AuthorizationApi.md +1278 -185
  11. data/docs/AuthzDivision.md +18 -0
  12. data/docs/AuthzDivisionEntityListing.md +22 -0
  13. data/docs/AuthzGrant.md +16 -0
  14. data/docs/AuthzGrantPolicy.md +16 -0
  15. data/docs/AuthzGrantRole.md +18 -0
  16. data/docs/AuthzSubject.md +17 -0
  17. data/docs/CalibrationEntityListing.md +2 -2
  18. data/docs/CallConversationEntityListing.md +2 -2
  19. data/docs/CallHistoryConversationEntityListing.md +2 -2
  20. data/docs/CallableTimeSetEntityListing.md +2 -2
  21. data/docs/CallbackConversationEntityListing.md +2 -2
  22. data/docs/CampaignDivisionViewListing.md +2 -2
  23. data/docs/CampaignEntityListing.md +2 -2
  24. data/docs/CampaignRuleEntityListing.md +2 -2
  25. data/docs/CampaignSequenceEntityListing.md +2 -2
  26. data/docs/CertificateAuthorityEntityListing.md +2 -2
  27. data/docs/CertificateDetails.md +1 -1
  28. data/docs/ChatBadgeNotificationBadgeEntity.md +1 -3
  29. data/docs/ChatBadgeNotificationEntity.md +1 -3
  30. data/docs/ChatConversationEntityListing.md +2 -2
  31. data/docs/ClientAppEntityListing.md +2 -2
  32. data/docs/CobrowseConversationEntityListing.md +2 -2
  33. data/docs/CommandStatusEntityListing.md +2 -2
  34. data/docs/ConsumedResourcesEntityListing.md +2 -2
  35. data/docs/ConsumingResourcesEntityListing.md +2 -2
  36. data/docs/ContactListEntityListing.md +2 -2
  37. data/docs/ContactListFilterEntityListing.md +2 -2
  38. data/docs/ContactListing.md +2 -2
  39. data/docs/ConversationEntityListing.md +2 -2
  40. data/docs/ConversationQuery.md +1 -0
  41. data/docs/CreateCallbackCommand.md +1 -0
  42. data/docs/CreateCallbackOnConversationCommand.md +1 -0
  43. data/docs/CreateQueueRequest.md +1 -1
  44. data/docs/CredentialInfoListing.md +2 -2
  45. data/docs/CredentialTypeListing.md +2 -2
  46. data/docs/CustomerInteractionCenter.md +1 -1
  47. data/docs/DIDEntityListing.md +2 -2
  48. data/docs/DIDPoolEntityListing.md +2 -2
  49. data/docs/DataTableRowEntityListing.md +2 -2
  50. data/docs/DataTablesDomainEntityListing.md +2 -2
  51. data/docs/DependencyObjectEntityListing.md +2 -2
  52. data/docs/DependencyTypeEntityListing.md +2 -2
  53. data/docs/DialerEventEntityListing.md +2 -2
  54. data/docs/DirectoryUserDevicesListing.md +2 -2
  55. data/docs/DncListEntityListing.md +2 -2
  56. data/docs/Document.md +1 -1
  57. data/docs/DocumentAuditEntityListing.md +2 -2
  58. data/docs/DocumentEntityListing.md +2 -2
  59. data/docs/DomainEdgeSoftwareVersionDtoEntityListing.md +2 -2
  60. data/docs/DomainEntityListing.md +2 -2
  61. data/docs/DomainEntityListingEvaluationForm.md +2 -2
  62. data/docs/DomainEntityListingQueryResult.md +2 -2
  63. data/docs/DomainEntityListingSurveyForm.md +2 -2
  64. data/docs/DomainOrganizationRole.md +1 -1
  65. data/docs/DomainOrganizationRoleCreate.md +1 -1
  66. data/docs/DomainOrganizationRoleUpdate.md +1 -1
  67. data/docs/EdgeEntityListing.md +2 -2
  68. data/docs/EdgeGroupEntityListing.md +2 -2
  69. data/docs/EdgeLineEntityListing.md +2 -2
  70. data/docs/EmailConversationEntityListing.md +2 -2
  71. data/docs/EmailMessageListing.md +2 -2
  72. data/docs/EmergencyGroupListing.md +2 -2
  73. data/docs/EncryptionKeyEntityListing.md +2 -2
  74. data/docs/EndpointEntityListing.md +2 -2
  75. data/docs/EvaluationEntityListing.md +2 -2
  76. data/docs/EvaluationFormEntityListing.md +2 -2
  77. data/docs/EvaluatorActivityEntityListing.md +2 -2
  78. data/docs/ExtensionEntityListing.md +2 -2
  79. data/docs/ExtensionPoolEntityListing.md +2 -2
  80. data/docs/ExternalOrganizationListing.md +2 -2
  81. data/docs/FacebookIntegration.md +24 -0
  82. data/docs/FacebookIntegrationEntityListing.md +22 -0
  83. data/docs/FacebookIntegrationRequest.md +20 -0
  84. data/docs/FaxDocument.md +1 -1
  85. data/docs/FaxDocumentEntityListing.md +2 -2
  86. data/docs/FlowDivisionViewEntityListing.md +2 -2
  87. data/docs/FlowEntityListing.md +2 -2
  88. data/docs/FlowVersionEntityListing.md +2 -2
  89. data/docs/FlowsApi.md +78 -0
  90. data/docs/GDPRRequestEntityListing.md +2 -2
  91. data/docs/GDPRSubjectEntityListing.md +2 -2
  92. data/docs/GKNDocumentationResult.md +16 -0
  93. data/docs/GKNDocumentationSearchCriteria.md +20 -0
  94. data/docs/GKNDocumentationSearchRequest.md +18 -0
  95. data/docs/GKNDocumentationSearchResponse.md +21 -0
  96. data/docs/GSuite.md +1 -1
  97. data/docs/GreetingListing.md +2 -2
  98. data/docs/GroupEntityListing.md +2 -2
  99. data/docs/GroupProfileEntityListing.md +2 -2
  100. data/docs/GroupsApi.md +1 -1
  101. data/docs/IVREntityListing.md +2 -2
  102. data/docs/IdentityNow.md +1 -1
  103. data/docs/InboundDomainEntityListing.md +2 -2
  104. data/docs/InboundRouteEntityListing.md +2 -2
  105. data/docs/IntegrationEntityListing.md +2 -2
  106. data/docs/IntegrationEventEntityListing.md +2 -2
  107. data/docs/IntegrationTypeEntityListing.md +2 -2
  108. data/docs/InteractionStatsAlertContainer.md +2 -2
  109. data/docs/InteractionStatsRuleContainer.md +2 -2
  110. data/docs/JsonNode.md +6 -6
  111. data/docs/KeywordSetEntityListing.md +2 -2
  112. data/docs/LanguageEntityListing.md +2 -2
  113. data/docs/LibraryEntityListing.md +2 -2
  114. data/docs/LineBaseEntityListing.md +2 -2
  115. data/docs/LineEntityListing.md +2 -2
  116. data/docs/LineIntegration.md +24 -0
  117. data/docs/LineIntegrationEntityListing.md +22 -0
  118. data/docs/LineIntegrationRequest.md +19 -0
  119. data/docs/LocationEntityListing.md +2 -2
  120. data/docs/LogicalInterfaceEntityListing.md +2 -2
  121. data/docs/ManagementUnitListing.md +2 -2
  122. data/docs/MessageConversationEntityListing.md +2 -2
  123. data/docs/MessagingApi.md +1015 -0
  124. data/docs/MessagingSticker.md +22 -0
  125. data/docs/MessagingStickerEntityListing.md +22 -0
  126. data/docs/NoteListing.md +2 -2
  127. data/docs/OAuthClientEntityListing.md +2 -2
  128. data/docs/OAuthProviderEntityListing.md +2 -2
  129. data/docs/ObjectsApi.md +554 -0
  130. data/docs/Okta.md +1 -1
  131. data/docs/OneLogin.md +1 -1
  132. data/docs/OrgUser.md +3 -1
  133. data/docs/OrganizationPresenceEntityListing.md +2 -2
  134. data/docs/OrganizationRoleEntityListing.md +2 -2
  135. data/docs/OrphanRecordingListing.md +2 -2
  136. data/docs/OutboundApi.md +2 -2
  137. data/docs/OutboundRouteBaseEntityListing.md +2 -2
  138. data/docs/OutboundRouteEntityListing.md +2 -2
  139. data/docs/PermissionCollectionEntityListing.md +2 -2
  140. data/docs/PhoneBaseEntityListing.md +2 -2
  141. data/docs/PhoneEntityListing.md +2 -2
  142. data/docs/PhoneMetaBaseEntityListing.md +2 -2
  143. data/docs/PhysicalInterfaceEntityListing.md +2 -2
  144. data/docs/PingIdentity.md +1 -1
  145. data/docs/PolicyEntityListing.md +2 -2
  146. data/docs/PresenceApi.md +66 -0
  147. data/docs/PromptAsset.md +1 -0
  148. data/docs/PromptAssetCreate.md +1 -0
  149. data/docs/PromptAssetEntityListing.md +2 -2
  150. data/docs/PromptEntityListing.md +2 -2
  151. data/docs/QualityAuditPage.md +2 -2
  152. data/docs/QueueEntityListing.md +2 -2
  153. data/docs/QueueMemberEntityListing.md +2 -2
  154. data/docs/QueueRequest.md +1 -1
  155. data/docs/RecipientListing.md +2 -2
  156. data/docs/RelationshipListing.md +2 -2
  157. data/docs/ReportMetaDataEntityListing.md +2 -2
  158. data/docs/ReportRunEntryEntityDomainListing.md +2 -2
  159. data/docs/ReportScheduleEntityListing.md +2 -2
  160. data/docs/ReportingExportJobListing.md +2 -2
  161. data/docs/ResponseConfig.md +1 -0
  162. data/docs/ResponseEntityList.md +2 -2
  163. data/docs/ResponseEntityListing.md +2 -2
  164. data/docs/ResponseSetEntityListing.md +2 -2
  165. data/docs/RoutingApi.md +144 -4
  166. data/docs/RuleSetEntityListing.md +2 -2
  167. data/docs/Salesforce.md +1 -1
  168. data/docs/ScheduleEntityListing.md +2 -2
  169. data/docs/ScheduleGroupEntityListing.md +2 -2
  170. data/docs/SchemaCategoryEntityListing.md +2 -2
  171. data/docs/SchemaReferenceEntityListing.md +2 -2
  172. data/docs/ScreenRecordingSessionListing.md +2 -2
  173. data/docs/ScriptEntityListing.md +2 -2
  174. data/docs/SearchApi.md +132 -2
  175. data/docs/SecurityProfileEntityListing.md +2 -2
  176. data/docs/ShareEntityListing.md +2 -2
  177. data/docs/SiteEntityListing.md +2 -2
  178. data/docs/SkillEntityListing.md +2 -2
  179. data/docs/SmsPhoneNumberEntityListing.md +2 -2
  180. data/docs/StationEntityListing.md +2 -2
  181. data/docs/SubjectDivisionGrantsEntityListing.md +2 -2
  182. data/docs/SubjectDivisions.md +14 -0
  183. data/docs/SuggestApi.md +2 -2
  184. data/docs/SurveyFormEntityListing.md +2 -2
  185. data/docs/SystemPromptAsset.md +1 -0
  186. data/docs/SystemPromptAssetEntityListing.md +2 -2
  187. data/docs/SystemPromptEntityListing.md +2 -2
  188. data/docs/TagValueEntityListing.md +2 -2
  189. data/docs/TextMessageListing.md +2 -2
  190. data/docs/TimeZone.md +2 -2
  191. data/docs/TimeZoneEntityListing.md +2 -2
  192. data/docs/TrunkBaseEntityListing.md +2 -2
  193. data/docs/TrunkEntityListing.md +2 -2
  194. data/docs/TrunkMetabaseEntityListing.md +2 -2
  195. data/docs/TrustEntityListing.md +2 -2
  196. data/docs/TrustUser.md +3 -1
  197. data/docs/TrustUserEntityListing.md +2 -2
  198. data/docs/TrustorEntityListing.md +2 -2
  199. data/docs/TwitterIntegration.md +28 -0
  200. data/docs/TwitterIntegrationEntityListing.md +22 -0
  201. data/docs/TwitterIntegrationRequest.md +21 -0
  202. data/docs/UpdateUser.md +1 -1
  203. data/docs/UpdateWeekScheduleRequest.md +1 -0
  204. data/docs/User.md +3 -1
  205. data/docs/UserActionCategoryEntityListing.md +2 -2
  206. data/docs/UserEntityListing.md +2 -2
  207. data/docs/UserLanguageEntityListing.md +2 -2
  208. data/docs/UserMe.md +3 -1
  209. data/docs/UserProfileEntityListing.md +2 -2
  210. data/docs/UserQueueEntityListing.md +2 -2
  211. data/docs/UserRecordingEntityListing.md +2 -2
  212. data/docs/UserSkillEntityListing.md +2 -2
  213. data/docs/UsersApi.md +560 -8
  214. data/docs/VoicemailMessageEntityListing.md +2 -2
  215. data/docs/WorkforceManagementApi.md +67 -0
  216. data/docs/WorkspaceEntityListing.md +2 -2
  217. data/docs/WorkspaceMemberEntityListing.md +2 -2
  218. data/docs/WrapupCodeEntityListing.md +2 -2
  219. data/docs/WritableDialerContact.md +17 -0
  220. data/lib/purecloudplatformclientv2.rb +26 -0
  221. data/lib/purecloudplatformclientv2/api/analytics_api.rb +65 -0
  222. data/lib/purecloudplatformclientv2/api/authorization_api.rb +1477 -250
  223. data/lib/purecloudplatformclientv2/api/flows_api.rb +92 -0
  224. data/lib/purecloudplatformclientv2/api/messaging_api.rb +1050 -0
  225. data/lib/purecloudplatformclientv2/api/objects_api.rb +640 -0
  226. data/lib/purecloudplatformclientv2/api/presence_api.rb +65 -0
  227. data/lib/purecloudplatformclientv2/api/routing_api.rb +157 -3
  228. data/lib/purecloudplatformclientv2/api/search_api.rb +131 -0
  229. data/lib/purecloudplatformclientv2/api/users_api.rb +607 -0
  230. data/lib/purecloudplatformclientv2/api/workforce_management_api.rb +64 -0
  231. data/lib/purecloudplatformclientv2/api_client.rb +1 -1
  232. data/lib/purecloudplatformclientv2/models/action_entity_listing.rb +23 -23
  233. data/lib/purecloudplatformclientv2/models/adfs.rb +12 -12
  234. data/lib/purecloudplatformclientv2/models/agent_activity_entity_listing.rb +23 -23
  235. data/lib/purecloudplatformclientv2/models/analytics_session.rb +2 -2
  236. data/lib/purecloudplatformclientv2/models/analytics_survey.rb +30 -4
  237. data/lib/purecloudplatformclientv2/models/attempt_limits_entity_listing.rb +23 -23
  238. data/lib/purecloudplatformclientv2/models/attribute_entity_listing.rb +23 -23
  239. data/lib/purecloudplatformclientv2/models/authz_division.rb +338 -0
  240. data/lib/purecloudplatformclientv2/models/authz_division_entity_listing.rb +428 -0
  241. data/lib/purecloudplatformclientv2/models/authz_grant.rb +277 -0
  242. data/lib/purecloudplatformclientv2/models/authz_grant_policy.rb +278 -0
  243. data/lib/purecloudplatformclientv2/models/authz_grant_role.rb +330 -0
  244. data/lib/purecloudplatformclientv2/models/authz_subject.rb +305 -0
  245. data/lib/purecloudplatformclientv2/models/calibration_entity_listing.rb +23 -23
  246. data/lib/purecloudplatformclientv2/models/call_conversation_entity_listing.rb +23 -23
  247. data/lib/purecloudplatformclientv2/models/call_history_conversation_entity_listing.rb +23 -23
  248. data/lib/purecloudplatformclientv2/models/callable_time_set_entity_listing.rb +23 -23
  249. data/lib/purecloudplatformclientv2/models/callback_conversation_entity_listing.rb +23 -23
  250. data/lib/purecloudplatformclientv2/models/campaign_division_view_listing.rb +23 -23
  251. data/lib/purecloudplatformclientv2/models/campaign_entity_listing.rb +23 -23
  252. data/lib/purecloudplatformclientv2/models/campaign_rule_entity_listing.rb +23 -23
  253. data/lib/purecloudplatformclientv2/models/campaign_sequence_entity_listing.rb +23 -23
  254. data/lib/purecloudplatformclientv2/models/certificate_authority_entity_listing.rb +23 -23
  255. data/lib/purecloudplatformclientv2/models/certificate_details.rb +13 -13
  256. data/lib/purecloudplatformclientv2/models/chat_badge_notification_badge_entity.rb +7 -71
  257. data/lib/purecloudplatformclientv2/models/chat_badge_notification_entity.rb +7 -71
  258. data/lib/purecloudplatformclientv2/models/chat_conversation_entity_listing.rb +23 -23
  259. data/lib/purecloudplatformclientv2/models/client_app_entity_listing.rb +23 -23
  260. data/lib/purecloudplatformclientv2/models/cobrowse_conversation_entity_listing.rb +23 -23
  261. data/lib/purecloudplatformclientv2/models/command_status_entity_listing.rb +23 -23
  262. data/lib/purecloudplatformclientv2/models/consumed_resources_entity_listing.rb +23 -23
  263. data/lib/purecloudplatformclientv2/models/consuming_resources_entity_listing.rb +23 -23
  264. data/lib/purecloudplatformclientv2/models/contact_list_entity_listing.rb +23 -23
  265. data/lib/purecloudplatformclientv2/models/contact_list_filter_entity_listing.rb +23 -23
  266. data/lib/purecloudplatformclientv2/models/contact_listing.rb +23 -23
  267. data/lib/purecloudplatformclientv2/models/conversation_entity_listing.rb +23 -23
  268. data/lib/purecloudplatformclientv2/models/conversation_query.rb +29 -1
  269. data/lib/purecloudplatformclientv2/models/create_callback_command.rb +27 -1
  270. data/lib/purecloudplatformclientv2/models/create_callback_on_conversation_command.rb +27 -1
  271. data/lib/purecloudplatformclientv2/models/create_queue_request.rb +6 -0
  272. data/lib/purecloudplatformclientv2/models/credential_info_listing.rb +23 -23
  273. data/lib/purecloudplatformclientv2/models/credential_type_listing.rb +23 -23
  274. data/lib/purecloudplatformclientv2/models/customer_interaction_center.rb +12 -12
  275. data/lib/purecloudplatformclientv2/models/data_table_row_entity_listing.rb +23 -23
  276. data/lib/purecloudplatformclientv2/models/data_tables_domain_entity_listing.rb +23 -23
  277. data/lib/purecloudplatformclientv2/models/dependency_object_entity_listing.rb +23 -23
  278. data/lib/purecloudplatformclientv2/models/dependency_type_entity_listing.rb +23 -23
  279. data/lib/purecloudplatformclientv2/models/dialer_event_entity_listing.rb +23 -23
  280. data/lib/purecloudplatformclientv2/models/did_entity_listing.rb +23 -23
  281. data/lib/purecloudplatformclientv2/models/did_pool_entity_listing.rb +23 -23
  282. data/lib/purecloudplatformclientv2/models/directory_user_devices_listing.rb +23 -23
  283. data/lib/purecloudplatformclientv2/models/dnc_list_entity_listing.rb +23 -23
  284. data/lib/purecloudplatformclientv2/models/document.rb +12 -12
  285. data/lib/purecloudplatformclientv2/models/document_audit_entity_listing.rb +23 -23
  286. data/lib/purecloudplatformclientv2/models/document_entity_listing.rb +23 -23
  287. data/lib/purecloudplatformclientv2/models/domain_edge_software_version_dto_entity_listing.rb +23 -23
  288. data/lib/purecloudplatformclientv2/models/domain_entity_listing.rb +23 -23
  289. data/lib/purecloudplatformclientv2/models/domain_entity_listing_evaluation_form.rb +23 -23
  290. data/lib/purecloudplatformclientv2/models/domain_entity_listing_query_result.rb +23 -23
  291. data/lib/purecloudplatformclientv2/models/domain_entity_listing_survey_form.rb +23 -23
  292. data/lib/purecloudplatformclientv2/models/domain_organization_role.rb +12 -12
  293. data/lib/purecloudplatformclientv2/models/domain_organization_role_create.rb +12 -12
  294. data/lib/purecloudplatformclientv2/models/domain_organization_role_update.rb +12 -12
  295. data/lib/purecloudplatformclientv2/models/edge_entity_listing.rb +23 -23
  296. data/lib/purecloudplatformclientv2/models/edge_group_entity_listing.rb +23 -23
  297. data/lib/purecloudplatformclientv2/models/edge_line_entity_listing.rb +23 -23
  298. data/lib/purecloudplatformclientv2/models/email_conversation_entity_listing.rb +23 -23
  299. data/lib/purecloudplatformclientv2/models/email_message_listing.rb +23 -23
  300. data/lib/purecloudplatformclientv2/models/emergency_group_listing.rb +23 -23
  301. data/lib/purecloudplatformclientv2/models/encryption_key_entity_listing.rb +23 -23
  302. data/lib/purecloudplatformclientv2/models/endpoint_entity_listing.rb +23 -23
  303. data/lib/purecloudplatformclientv2/models/evaluation_entity_listing.rb +23 -23
  304. data/lib/purecloudplatformclientv2/models/evaluation_form_entity_listing.rb +23 -23
  305. data/lib/purecloudplatformclientv2/models/evaluator_activity_entity_listing.rb +23 -23
  306. data/lib/purecloudplatformclientv2/models/extension_entity_listing.rb +23 -23
  307. data/lib/purecloudplatformclientv2/models/extension_pool_entity_listing.rb +23 -23
  308. data/lib/purecloudplatformclientv2/models/external_organization_listing.rb +23 -23
  309. data/lib/purecloudplatformclientv2/models/facebook_integration.rb +508 -0
  310. data/lib/purecloudplatformclientv2/models/facebook_integration_entity_listing.rb +428 -0
  311. data/lib/purecloudplatformclientv2/models/facebook_integration_request.rb +394 -0
  312. data/lib/purecloudplatformclientv2/models/fax_document.rb +12 -12
  313. data/lib/purecloudplatformclientv2/models/fax_document_entity_listing.rb +23 -23
  314. data/lib/purecloudplatformclientv2/models/flow_division_view_entity_listing.rb +23 -23
  315. data/lib/purecloudplatformclientv2/models/flow_entity_listing.rb +23 -23
  316. data/lib/purecloudplatformclientv2/models/flow_version_entity_listing.rb +23 -23
  317. data/lib/purecloudplatformclientv2/models/forecast_time_series_result.rb +2 -2
  318. data/lib/purecloudplatformclientv2/models/g_suite.rb +12 -12
  319. data/lib/purecloudplatformclientv2/models/gdpr_request_entity_listing.rb +23 -23
  320. data/lib/purecloudplatformclientv2/models/gdpr_subject_entity_listing.rb +23 -23
  321. data/lib/purecloudplatformclientv2/models/gkn_documentation_result.rb +285 -0
  322. data/lib/purecloudplatformclientv2/models/gkn_documentation_search_criteria.rb +423 -0
  323. data/lib/purecloudplatformclientv2/models/gkn_documentation_search_request.rb +349 -0
  324. data/lib/purecloudplatformclientv2/models/gkn_documentation_search_response.rb +444 -0
  325. data/lib/purecloudplatformclientv2/models/greeting_listing.rb +23 -23
  326. data/lib/purecloudplatformclientv2/models/group_entity_listing.rb +23 -23
  327. data/lib/purecloudplatformclientv2/models/group_profile_entity_listing.rb +23 -23
  328. data/lib/purecloudplatformclientv2/models/identity_now.rb +12 -12
  329. data/lib/purecloudplatformclientv2/models/inbound_domain_entity_listing.rb +23 -23
  330. data/lib/purecloudplatformclientv2/models/inbound_route_entity_listing.rb +23 -23
  331. data/lib/purecloudplatformclientv2/models/integration_entity_listing.rb +23 -23
  332. data/lib/purecloudplatformclientv2/models/integration_event_entity_listing.rb +23 -23
  333. data/lib/purecloudplatformclientv2/models/integration_type_entity_listing.rb +23 -23
  334. data/lib/purecloudplatformclientv2/models/interaction_stats_alert_container.rb +23 -23
  335. data/lib/purecloudplatformclientv2/models/interaction_stats_rule_container.rb +23 -23
  336. data/lib/purecloudplatformclientv2/models/ivr_entity_listing.rb +23 -23
  337. data/lib/purecloudplatformclientv2/models/json_node.rb +89 -89
  338. data/lib/purecloudplatformclientv2/models/keyword_set_entity_listing.rb +23 -23
  339. data/lib/purecloudplatformclientv2/models/language_entity_listing.rb +23 -23
  340. data/lib/purecloudplatformclientv2/models/library_entity_listing.rb +23 -23
  341. data/lib/purecloudplatformclientv2/models/line_base_entity_listing.rb +23 -23
  342. data/lib/purecloudplatformclientv2/models/line_entity_listing.rb +23 -23
  343. data/lib/purecloudplatformclientv2/models/line_integration.rb +513 -0
  344. data/lib/purecloudplatformclientv2/models/line_integration_entity_listing.rb +428 -0
  345. data/lib/purecloudplatformclientv2/models/line_integration_request.rb +363 -0
  346. data/lib/purecloudplatformclientv2/models/location_entity_listing.rb +23 -23
  347. data/lib/purecloudplatformclientv2/models/logical_interface_entity_listing.rb +23 -23
  348. data/lib/purecloudplatformclientv2/models/management_unit_listing.rb +23 -23
  349. data/lib/purecloudplatformclientv2/models/message_conversation_entity_listing.rb +23 -23
  350. data/lib/purecloudplatformclientv2/models/messaging_sticker.rb +477 -0
  351. data/lib/purecloudplatformclientv2/models/messaging_sticker_entity_listing.rb +428 -0
  352. data/lib/purecloudplatformclientv2/models/note_listing.rb +23 -23
  353. data/lib/purecloudplatformclientv2/models/o_auth_client_entity_listing.rb +23 -23
  354. data/lib/purecloudplatformclientv2/models/o_auth_provider_entity_listing.rb +23 -23
  355. data/lib/purecloudplatformclientv2/models/okta.rb +12 -12
  356. data/lib/purecloudplatformclientv2/models/one_login.rb +12 -12
  357. data/lib/purecloudplatformclientv2/models/org_user.rb +58 -2
  358. data/lib/purecloudplatformclientv2/models/organization_presence_entity_listing.rb +23 -23
  359. data/lib/purecloudplatformclientv2/models/organization_role_entity_listing.rb +23 -23
  360. data/lib/purecloudplatformclientv2/models/orphan_recording_listing.rb +23 -23
  361. data/lib/purecloudplatformclientv2/models/outbound_route_base_entity_listing.rb +23 -23
  362. data/lib/purecloudplatformclientv2/models/outbound_route_entity_listing.rb +23 -23
  363. data/lib/purecloudplatformclientv2/models/permission_collection_entity_listing.rb +23 -23
  364. data/lib/purecloudplatformclientv2/models/phone_base_entity_listing.rb +23 -23
  365. data/lib/purecloudplatformclientv2/models/phone_entity_listing.rb +23 -23
  366. data/lib/purecloudplatformclientv2/models/phone_meta_base_entity_listing.rb +23 -23
  367. data/lib/purecloudplatformclientv2/models/physical_interface_entity_listing.rb +23 -23
  368. data/lib/purecloudplatformclientv2/models/ping_identity.rb +12 -12
  369. data/lib/purecloudplatformclientv2/models/policy_entity_listing.rb +23 -23
  370. data/lib/purecloudplatformclientv2/models/prompt_asset.rb +26 -1
  371. data/lib/purecloudplatformclientv2/models/prompt_asset_create.rb +26 -1
  372. data/lib/purecloudplatformclientv2/models/prompt_asset_entity_listing.rb +23 -23
  373. data/lib/purecloudplatformclientv2/models/prompt_entity_listing.rb +23 -23
  374. data/lib/purecloudplatformclientv2/models/quality_audit_page.rb +23 -23
  375. data/lib/purecloudplatformclientv2/models/queue_entity_listing.rb +23 -23
  376. data/lib/purecloudplatformclientv2/models/queue_member_entity_listing.rb +23 -23
  377. data/lib/purecloudplatformclientv2/models/queue_request.rb +6 -0
  378. data/lib/purecloudplatformclientv2/models/recipient_listing.rb +23 -23
  379. data/lib/purecloudplatformclientv2/models/relationship_listing.rb +23 -23
  380. data/lib/purecloudplatformclientv2/models/report_meta_data_entity_listing.rb +23 -23
  381. data/lib/purecloudplatformclientv2/models/report_run_entry_entity_domain_listing.rb +23 -23
  382. data/lib/purecloudplatformclientv2/models/report_schedule_entity_listing.rb +23 -23
  383. data/lib/purecloudplatformclientv2/models/reporting_export_job_listing.rb +23 -23
  384. data/lib/purecloudplatformclientv2/models/response_config.rb +29 -1
  385. data/lib/purecloudplatformclientv2/models/response_entity_list.rb +23 -23
  386. data/lib/purecloudplatformclientv2/models/response_entity_listing.rb +23 -23
  387. data/lib/purecloudplatformclientv2/models/response_set_entity_listing.rb +23 -23
  388. data/lib/purecloudplatformclientv2/models/rule_set_entity_listing.rb +23 -23
  389. data/lib/purecloudplatformclientv2/models/salesforce.rb +12 -12
  390. data/lib/purecloudplatformclientv2/models/schedule_entity_listing.rb +23 -23
  391. data/lib/purecloudplatformclientv2/models/schedule_group_entity_listing.rb +23 -23
  392. data/lib/purecloudplatformclientv2/models/schema_category_entity_listing.rb +23 -23
  393. data/lib/purecloudplatformclientv2/models/schema_reference_entity_listing.rb +23 -23
  394. data/lib/purecloudplatformclientv2/models/screen_recording_session_listing.rb +23 -23
  395. data/lib/purecloudplatformclientv2/models/script_entity_listing.rb +23 -23
  396. data/lib/purecloudplatformclientv2/models/security_profile_entity_listing.rb +23 -23
  397. data/lib/purecloudplatformclientv2/models/share_entity_listing.rb +23 -23
  398. data/lib/purecloudplatformclientv2/models/site_entity_listing.rb +23 -23
  399. data/lib/purecloudplatformclientv2/models/skill_entity_listing.rb +23 -23
  400. data/lib/purecloudplatformclientv2/models/sms_phone_number_entity_listing.rb +23 -23
  401. data/lib/purecloudplatformclientv2/models/station_entity_listing.rb +23 -23
  402. data/lib/purecloudplatformclientv2/models/subject_division_grants_entity_listing.rb +23 -23
  403. data/lib/purecloudplatformclientv2/models/subject_divisions.rb +242 -0
  404. data/lib/purecloudplatformclientv2/models/survey_form_entity_listing.rb +23 -23
  405. data/lib/purecloudplatformclientv2/models/system_prompt_asset.rb +26 -1
  406. data/lib/purecloudplatformclientv2/models/system_prompt_asset_entity_listing.rb +23 -23
  407. data/lib/purecloudplatformclientv2/models/system_prompt_entity_listing.rb +23 -23
  408. data/lib/purecloudplatformclientv2/models/tag_value_entity_listing.rb +23 -23
  409. data/lib/purecloudplatformclientv2/models/text_message_listing.rb +23 -23
  410. data/lib/purecloudplatformclientv2/models/time_zone.rb +24 -24
  411. data/lib/purecloudplatformclientv2/models/time_zone_entity_listing.rb +23 -23
  412. data/lib/purecloudplatformclientv2/models/trunk_base_entity_listing.rb +23 -23
  413. data/lib/purecloudplatformclientv2/models/trunk_entity_listing.rb +23 -23
  414. data/lib/purecloudplatformclientv2/models/trunk_metabase_entity_listing.rb +23 -23
  415. data/lib/purecloudplatformclientv2/models/trust_entity_listing.rb +23 -23
  416. data/lib/purecloudplatformclientv2/models/trust_user.rb +58 -2
  417. data/lib/purecloudplatformclientv2/models/trust_user_entity_listing.rb +23 -23
  418. data/lib/purecloudplatformclientv2/models/trustor_entity_listing.rb +23 -23
  419. data/lib/purecloudplatformclientv2/models/twitter_integration.rb +636 -0
  420. data/lib/purecloudplatformclientv2/models/twitter_integration_entity_listing.rb +428 -0
  421. data/lib/purecloudplatformclientv2/models/twitter_integration_request.rb +454 -0
  422. data/lib/purecloudplatformclientv2/models/update_user.rb +1 -1
  423. data/lib/purecloudplatformclientv2/models/update_week_schedule_request.rb +44 -4
  424. data/lib/purecloudplatformclientv2/models/user.rb +58 -2
  425. data/lib/purecloudplatformclientv2/models/user_action_category_entity_listing.rb +23 -23
  426. data/lib/purecloudplatformclientv2/models/user_entity_listing.rb +23 -23
  427. data/lib/purecloudplatformclientv2/models/user_language_entity_listing.rb +23 -23
  428. data/lib/purecloudplatformclientv2/models/user_me.rb +58 -2
  429. data/lib/purecloudplatformclientv2/models/user_profile_entity_listing.rb +23 -23
  430. data/lib/purecloudplatformclientv2/models/user_queue_entity_listing.rb +23 -23
  431. data/lib/purecloudplatformclientv2/models/user_recording_entity_listing.rb +23 -23
  432. data/lib/purecloudplatformclientv2/models/user_skill_entity_listing.rb +23 -23
  433. data/lib/purecloudplatformclientv2/models/voicemail_message_entity_listing.rb +23 -23
  434. data/lib/purecloudplatformclientv2/models/web_chat_config.rb +15 -1
  435. data/lib/purecloudplatformclientv2/models/workspace_entity_listing.rb +23 -23
  436. data/lib/purecloudplatformclientv2/models/workspace_member_entity_listing.rb +23 -23
  437. data/lib/purecloudplatformclientv2/models/wrapup_code_entity_listing.rb +23 -23
  438. data/lib/purecloudplatformclientv2/models/writable_dialer_contact.rb +320 -0
  439. data/lib/purecloudplatformclientv2/version.rb +1 -1
  440. metadata +54 -2
@@ -0,0 +1,92 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@genesys.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require "uri"
18
+
19
+ module PureCloud
20
+ class FlowsApi
21
+ attr_accessor :api_client
22
+
23
+ def initialize(api_client = ApiClient.default)
24
+ @api_client = api_client
25
+ end
26
+
27
+ # Query for flow aggregates
28
+ #
29
+ # @param body query
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [AggregateQueryResponse]
32
+ def post_analytics_flows_aggregates_query(body, opts = {})
33
+ data, _status_code, _headers = post_analytics_flows_aggregates_query_with_http_info(body, opts)
34
+ return data
35
+ end
36
+
37
+ # Query for flow aggregates
38
+ #
39
+ # @param body query
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Array<(AggregateQueryResponse, Fixnum, Hash)>] AggregateQueryResponse data, response status code and response headers
42
+ def post_analytics_flows_aggregates_query_with_http_info(body, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug "Calling API: FlowsApi.post_analytics_flows_aggregates_query ..."
45
+ end
46
+
47
+
48
+ # verify the required parameter 'body' is set
49
+ fail ArgumentError, "Missing the required parameter 'body' when calling FlowsApi.post_analytics_flows_aggregates_query" if body.nil?
50
+
51
+
52
+
53
+
54
+
55
+ # resource path
56
+ local_var_path = "/api/v2/analytics/flows/aggregates/query".sub('{format}','json')
57
+
58
+ # query parameters
59
+ query_params = {}
60
+
61
+ # header parameters
62
+ header_params = {}
63
+
64
+ # HTTP header 'Accept' (if needed)
65
+ local_header_accept = ['application/json']
66
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
+
68
+ # HTTP header 'Content-Type'
69
+ local_header_content_type = ['application/json']
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = @api_client.object_to_http_body(body)
77
+
78
+ auth_names = ['PureCloud Auth']
79
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names,
85
+ :return_type => 'AggregateQueryResponse')
86
+ if @api_client.config.debugging
87
+ @api_client.config.logger.debug "API called: FlowsApi#post_analytics_flows_aggregates_query\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
88
+ end
89
+ return data, status_code, headers
90
+ end
91
+ end
92
+ end
@@ -0,0 +1,1050 @@
1
+ =begin
2
+ PureCloud Platform API
3
+
4
+ With the PureCloud Platform API, you can control all aspects of your PureCloud environment. With the APIs you can access the system configuration, manage conversations and more.
5
+
6
+ OpenAPI spec version: v2
7
+ Contact: DeveloperEvangelists@genesys.com
8
+ Generated by: https://github.com/swagger-api/swagger-codegen.git
9
+
10
+ License: ININ
11
+ http://www.inin.com
12
+
13
+ Terms of Service: https://developer.mypurecloud.com/tos
14
+
15
+ =end
16
+
17
+ require "uri"
18
+
19
+ module PureCloud
20
+ class MessagingApi
21
+ attr_accessor :api_client
22
+
23
+ def initialize(api_client = ApiClient.default)
24
+ @api_client = api_client
25
+ end
26
+
27
+ # Delete a Facebook messaging integration
28
+ #
29
+ # @param integration_id Integration ID
30
+ # @param [Hash] opts the optional parameters
31
+ # @return [nil]
32
+ def delete_messaging_integrations_facebook_integration_id(integration_id, opts = {})
33
+ delete_messaging_integrations_facebook_integration_id_with_http_info(integration_id, opts)
34
+ return nil
35
+ end
36
+
37
+ # Delete a Facebook messaging integration
38
+ #
39
+ # @param integration_id Integration ID
40
+ # @param [Hash] opts the optional parameters
41
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
42
+ def delete_messaging_integrations_facebook_integration_id_with_http_info(integration_id, opts = {})
43
+ if @api_client.config.debugging
44
+ @api_client.config.logger.debug "Calling API: MessagingApi.delete_messaging_integrations_facebook_integration_id ..."
45
+ end
46
+
47
+
48
+ # verify the required parameter 'integration_id' is set
49
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling MessagingApi.delete_messaging_integrations_facebook_integration_id" if integration_id.nil?
50
+
51
+
52
+
53
+
54
+
55
+ # resource path
56
+ local_var_path = "/api/v2/messaging/integrations/facebook/{integrationId}".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
57
+
58
+ # query parameters
59
+ query_params = {}
60
+
61
+ # header parameters
62
+ header_params = {}
63
+
64
+ # HTTP header 'Accept' (if needed)
65
+ local_header_accept = ['application/json']
66
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
67
+
68
+ # HTTP header 'Content-Type'
69
+ local_header_content_type = ['application/json']
70
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
71
+
72
+ # form parameters
73
+ form_params = {}
74
+
75
+ # http body (model)
76
+ post_body = nil
77
+
78
+ auth_names = ['PureCloud Auth']
79
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
80
+ :header_params => header_params,
81
+ :query_params => query_params,
82
+ :form_params => form_params,
83
+ :body => post_body,
84
+ :auth_names => auth_names)
85
+ if @api_client.config.debugging
86
+ @api_client.config.logger.debug "API called: MessagingApi#delete_messaging_integrations_facebook_integration_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
87
+ end
88
+ return data, status_code, headers
89
+ end
90
+
91
+ # Delete a LINE messenger integration
92
+ #
93
+ # @param integration_id Integration ID
94
+ # @param [Hash] opts the optional parameters
95
+ # @return [nil]
96
+ def delete_messaging_integrations_line_integration_id(integration_id, opts = {})
97
+ delete_messaging_integrations_line_integration_id_with_http_info(integration_id, opts)
98
+ return nil
99
+ end
100
+
101
+ # Delete a LINE messenger integration
102
+ #
103
+ # @param integration_id Integration ID
104
+ # @param [Hash] opts the optional parameters
105
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
106
+ def delete_messaging_integrations_line_integration_id_with_http_info(integration_id, opts = {})
107
+ if @api_client.config.debugging
108
+ @api_client.config.logger.debug "Calling API: MessagingApi.delete_messaging_integrations_line_integration_id ..."
109
+ end
110
+
111
+
112
+ # verify the required parameter 'integration_id' is set
113
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling MessagingApi.delete_messaging_integrations_line_integration_id" if integration_id.nil?
114
+
115
+
116
+
117
+
118
+
119
+ # resource path
120
+ local_var_path = "/api/v2/messaging/integrations/line/{integrationId}".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
121
+
122
+ # query parameters
123
+ query_params = {}
124
+
125
+ # header parameters
126
+ header_params = {}
127
+
128
+ # HTTP header 'Accept' (if needed)
129
+ local_header_accept = ['application/json']
130
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
131
+
132
+ # HTTP header 'Content-Type'
133
+ local_header_content_type = ['application/json']
134
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
135
+
136
+ # form parameters
137
+ form_params = {}
138
+
139
+ # http body (model)
140
+ post_body = nil
141
+
142
+ auth_names = ['PureCloud Auth']
143
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
144
+ :header_params => header_params,
145
+ :query_params => query_params,
146
+ :form_params => form_params,
147
+ :body => post_body,
148
+ :auth_names => auth_names)
149
+ if @api_client.config.debugging
150
+ @api_client.config.logger.debug "API called: MessagingApi#delete_messaging_integrations_line_integration_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
151
+ end
152
+ return data, status_code, headers
153
+ end
154
+
155
+ # Delete a Twitter messaging integration
156
+ #
157
+ # @param integration_id Integration ID
158
+ # @param [Hash] opts the optional parameters
159
+ # @return [nil]
160
+ def delete_messaging_integrations_twitter_integration_id(integration_id, opts = {})
161
+ delete_messaging_integrations_twitter_integration_id_with_http_info(integration_id, opts)
162
+ return nil
163
+ end
164
+
165
+ # Delete a Twitter messaging integration
166
+ #
167
+ # @param integration_id Integration ID
168
+ # @param [Hash] opts the optional parameters
169
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
170
+ def delete_messaging_integrations_twitter_integration_id_with_http_info(integration_id, opts = {})
171
+ if @api_client.config.debugging
172
+ @api_client.config.logger.debug "Calling API: MessagingApi.delete_messaging_integrations_twitter_integration_id ..."
173
+ end
174
+
175
+
176
+ # verify the required parameter 'integration_id' is set
177
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling MessagingApi.delete_messaging_integrations_twitter_integration_id" if integration_id.nil?
178
+
179
+
180
+
181
+
182
+
183
+ # resource path
184
+ local_var_path = "/api/v2/messaging/integrations/twitter/{integrationId}".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
185
+
186
+ # query parameters
187
+ query_params = {}
188
+
189
+ # header parameters
190
+ header_params = {}
191
+
192
+ # HTTP header 'Accept' (if needed)
193
+ local_header_accept = ['application/json']
194
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
195
+
196
+ # HTTP header 'Content-Type'
197
+ local_header_content_type = ['application/json']
198
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
199
+
200
+ # form parameters
201
+ form_params = {}
202
+
203
+ # http body (model)
204
+ post_body = nil
205
+
206
+ auth_names = ['PureCloud Auth']
207
+ data, status_code, headers = @api_client.call_api(:DELETE, local_var_path,
208
+ :header_params => header_params,
209
+ :query_params => query_params,
210
+ :form_params => form_params,
211
+ :body => post_body,
212
+ :auth_names => auth_names)
213
+ if @api_client.config.debugging
214
+ @api_client.config.logger.debug "API called: MessagingApi#delete_messaging_integrations_twitter_integration_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
215
+ end
216
+ return data, status_code, headers
217
+ end
218
+
219
+ # Get a list of Facebook Integrations
220
+ #
221
+ # @param [Hash] opts the optional parameters
222
+ # @option opts [Integer] :page_size Page size (default to 25)
223
+ # @option opts [Integer] :page_number Page number (default to 1)
224
+ # @return [FacebookIntegrationEntityListing]
225
+ def get_messaging_integrations_facebook(opts = {})
226
+ data, _status_code, _headers = get_messaging_integrations_facebook_with_http_info(opts)
227
+ return data
228
+ end
229
+
230
+ # Get a list of Facebook Integrations
231
+ #
232
+ # @param [Hash] opts the optional parameters
233
+ # @option opts [Integer] :page_size Page size
234
+ # @option opts [Integer] :page_number Page number
235
+ # @return [Array<(FacebookIntegrationEntityListing, Fixnum, Hash)>] FacebookIntegrationEntityListing data, response status code and response headers
236
+ def get_messaging_integrations_facebook_with_http_info(opts = {})
237
+ if @api_client.config.debugging
238
+ @api_client.config.logger.debug "Calling API: MessagingApi.get_messaging_integrations_facebook ..."
239
+ end
240
+
241
+
242
+
243
+
244
+
245
+
246
+
247
+
248
+
249
+
250
+
251
+
252
+
253
+ # resource path
254
+ local_var_path = "/api/v2/messaging/integrations/facebook".sub('{format}','json')
255
+
256
+ # query parameters
257
+ query_params = {}
258
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
259
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
260
+
261
+ # header parameters
262
+ header_params = {}
263
+
264
+ # HTTP header 'Accept' (if needed)
265
+ local_header_accept = ['application/json']
266
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
267
+
268
+ # HTTP header 'Content-Type'
269
+ local_header_content_type = ['application/json']
270
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
271
+
272
+ # form parameters
273
+ form_params = {}
274
+
275
+ # http body (model)
276
+ post_body = nil
277
+
278
+ auth_names = ['PureCloud Auth']
279
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
280
+ :header_params => header_params,
281
+ :query_params => query_params,
282
+ :form_params => form_params,
283
+ :body => post_body,
284
+ :auth_names => auth_names,
285
+ :return_type => 'FacebookIntegrationEntityListing')
286
+ if @api_client.config.debugging
287
+ @api_client.config.logger.debug "API called: MessagingApi#get_messaging_integrations_facebook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
288
+ end
289
+ return data, status_code, headers
290
+ end
291
+
292
+ # Get a Facebook messaging integration
293
+ #
294
+ # @param integration_id Integration ID
295
+ # @param [Hash] opts the optional parameters
296
+ # @return [FacebookIntegration]
297
+ def get_messaging_integrations_facebook_integration_id(integration_id, opts = {})
298
+ data, _status_code, _headers = get_messaging_integrations_facebook_integration_id_with_http_info(integration_id, opts)
299
+ return data
300
+ end
301
+
302
+ # Get a Facebook messaging integration
303
+ #
304
+ # @param integration_id Integration ID
305
+ # @param [Hash] opts the optional parameters
306
+ # @return [Array<(FacebookIntegration, Fixnum, Hash)>] FacebookIntegration data, response status code and response headers
307
+ def get_messaging_integrations_facebook_integration_id_with_http_info(integration_id, opts = {})
308
+ if @api_client.config.debugging
309
+ @api_client.config.logger.debug "Calling API: MessagingApi.get_messaging_integrations_facebook_integration_id ..."
310
+ end
311
+
312
+
313
+ # verify the required parameter 'integration_id' is set
314
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling MessagingApi.get_messaging_integrations_facebook_integration_id" if integration_id.nil?
315
+
316
+
317
+
318
+
319
+
320
+ # resource path
321
+ local_var_path = "/api/v2/messaging/integrations/facebook/{integrationId}".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
322
+
323
+ # query parameters
324
+ query_params = {}
325
+
326
+ # header parameters
327
+ header_params = {}
328
+
329
+ # HTTP header 'Accept' (if needed)
330
+ local_header_accept = ['application/json']
331
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
332
+
333
+ # HTTP header 'Content-Type'
334
+ local_header_content_type = ['application/json']
335
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
336
+
337
+ # form parameters
338
+ form_params = {}
339
+
340
+ # http body (model)
341
+ post_body = nil
342
+
343
+ auth_names = ['PureCloud Auth']
344
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
345
+ :header_params => header_params,
346
+ :query_params => query_params,
347
+ :form_params => form_params,
348
+ :body => post_body,
349
+ :auth_names => auth_names,
350
+ :return_type => 'FacebookIntegration')
351
+ if @api_client.config.debugging
352
+ @api_client.config.logger.debug "API called: MessagingApi#get_messaging_integrations_facebook_integration_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
353
+ end
354
+ return data, status_code, headers
355
+ end
356
+
357
+ # Get a list of LINE messenger Integrations
358
+ #
359
+ # @param [Hash] opts the optional parameters
360
+ # @option opts [Integer] :page_size Page size (default to 25)
361
+ # @option opts [Integer] :page_number Page number (default to 1)
362
+ # @return [LineIntegrationEntityListing]
363
+ def get_messaging_integrations_line(opts = {})
364
+ data, _status_code, _headers = get_messaging_integrations_line_with_http_info(opts)
365
+ return data
366
+ end
367
+
368
+ # Get a list of LINE messenger Integrations
369
+ #
370
+ # @param [Hash] opts the optional parameters
371
+ # @option opts [Integer] :page_size Page size
372
+ # @option opts [Integer] :page_number Page number
373
+ # @return [Array<(LineIntegrationEntityListing, Fixnum, Hash)>] LineIntegrationEntityListing data, response status code and response headers
374
+ def get_messaging_integrations_line_with_http_info(opts = {})
375
+ if @api_client.config.debugging
376
+ @api_client.config.logger.debug "Calling API: MessagingApi.get_messaging_integrations_line ..."
377
+ end
378
+
379
+
380
+
381
+
382
+
383
+
384
+
385
+
386
+
387
+
388
+
389
+
390
+
391
+ # resource path
392
+ local_var_path = "/api/v2/messaging/integrations/line".sub('{format}','json')
393
+
394
+ # query parameters
395
+ query_params = {}
396
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
397
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
398
+
399
+ # header parameters
400
+ header_params = {}
401
+
402
+ # HTTP header 'Accept' (if needed)
403
+ local_header_accept = ['application/json']
404
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
405
+
406
+ # HTTP header 'Content-Type'
407
+ local_header_content_type = ['application/json']
408
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
409
+
410
+ # form parameters
411
+ form_params = {}
412
+
413
+ # http body (model)
414
+ post_body = nil
415
+
416
+ auth_names = ['PureCloud Auth']
417
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
418
+ :header_params => header_params,
419
+ :query_params => query_params,
420
+ :form_params => form_params,
421
+ :body => post_body,
422
+ :auth_names => auth_names,
423
+ :return_type => 'LineIntegrationEntityListing')
424
+ if @api_client.config.debugging
425
+ @api_client.config.logger.debug "API called: MessagingApi#get_messaging_integrations_line\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
426
+ end
427
+ return data, status_code, headers
428
+ end
429
+
430
+ # Get a LINE messenger integration
431
+ #
432
+ # @param integration_id Integration ID
433
+ # @param [Hash] opts the optional parameters
434
+ # @return [LineIntegration]
435
+ def get_messaging_integrations_line_integration_id(integration_id, opts = {})
436
+ data, _status_code, _headers = get_messaging_integrations_line_integration_id_with_http_info(integration_id, opts)
437
+ return data
438
+ end
439
+
440
+ # Get a LINE messenger integration
441
+ #
442
+ # @param integration_id Integration ID
443
+ # @param [Hash] opts the optional parameters
444
+ # @return [Array<(LineIntegration, Fixnum, Hash)>] LineIntegration data, response status code and response headers
445
+ def get_messaging_integrations_line_integration_id_with_http_info(integration_id, opts = {})
446
+ if @api_client.config.debugging
447
+ @api_client.config.logger.debug "Calling API: MessagingApi.get_messaging_integrations_line_integration_id ..."
448
+ end
449
+
450
+
451
+ # verify the required parameter 'integration_id' is set
452
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling MessagingApi.get_messaging_integrations_line_integration_id" if integration_id.nil?
453
+
454
+
455
+
456
+
457
+
458
+ # resource path
459
+ local_var_path = "/api/v2/messaging/integrations/line/{integrationId}".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
460
+
461
+ # query parameters
462
+ query_params = {}
463
+
464
+ # header parameters
465
+ header_params = {}
466
+
467
+ # HTTP header 'Accept' (if needed)
468
+ local_header_accept = ['application/json']
469
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
470
+
471
+ # HTTP header 'Content-Type'
472
+ local_header_content_type = ['application/json']
473
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
474
+
475
+ # form parameters
476
+ form_params = {}
477
+
478
+ # http body (model)
479
+ post_body = nil
480
+
481
+ auth_names = ['PureCloud Auth']
482
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
483
+ :header_params => header_params,
484
+ :query_params => query_params,
485
+ :form_params => form_params,
486
+ :body => post_body,
487
+ :auth_names => auth_names,
488
+ :return_type => 'LineIntegration')
489
+ if @api_client.config.debugging
490
+ @api_client.config.logger.debug "API called: MessagingApi#get_messaging_integrations_line_integration_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
491
+ end
492
+ return data, status_code, headers
493
+ end
494
+
495
+ # Get a list of Twitter Integrations
496
+ #
497
+ # @param [Hash] opts the optional parameters
498
+ # @option opts [Integer] :page_size Page size (default to 25)
499
+ # @option opts [Integer] :page_number Page number (default to 1)
500
+ # @return [TwitterIntegrationEntityListing]
501
+ def get_messaging_integrations_twitter(opts = {})
502
+ data, _status_code, _headers = get_messaging_integrations_twitter_with_http_info(opts)
503
+ return data
504
+ end
505
+
506
+ # Get a list of Twitter Integrations
507
+ #
508
+ # @param [Hash] opts the optional parameters
509
+ # @option opts [Integer] :page_size Page size
510
+ # @option opts [Integer] :page_number Page number
511
+ # @return [Array<(TwitterIntegrationEntityListing, Fixnum, Hash)>] TwitterIntegrationEntityListing data, response status code and response headers
512
+ def get_messaging_integrations_twitter_with_http_info(opts = {})
513
+ if @api_client.config.debugging
514
+ @api_client.config.logger.debug "Calling API: MessagingApi.get_messaging_integrations_twitter ..."
515
+ end
516
+
517
+
518
+
519
+
520
+
521
+
522
+
523
+
524
+
525
+
526
+
527
+
528
+
529
+ # resource path
530
+ local_var_path = "/api/v2/messaging/integrations/twitter".sub('{format}','json')
531
+
532
+ # query parameters
533
+ query_params = {}
534
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
535
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
536
+
537
+ # header parameters
538
+ header_params = {}
539
+
540
+ # HTTP header 'Accept' (if needed)
541
+ local_header_accept = ['application/json']
542
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
543
+
544
+ # HTTP header 'Content-Type'
545
+ local_header_content_type = ['application/json']
546
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
547
+
548
+ # form parameters
549
+ form_params = {}
550
+
551
+ # http body (model)
552
+ post_body = nil
553
+
554
+ auth_names = ['PureCloud Auth']
555
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
556
+ :header_params => header_params,
557
+ :query_params => query_params,
558
+ :form_params => form_params,
559
+ :body => post_body,
560
+ :auth_names => auth_names,
561
+ :return_type => 'TwitterIntegrationEntityListing')
562
+ if @api_client.config.debugging
563
+ @api_client.config.logger.debug "API called: MessagingApi#get_messaging_integrations_twitter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
564
+ end
565
+ return data, status_code, headers
566
+ end
567
+
568
+ # Get a Twitter messaging integration
569
+ #
570
+ # @param integration_id Integration ID
571
+ # @param [Hash] opts the optional parameters
572
+ # @return [TwitterIntegration]
573
+ def get_messaging_integrations_twitter_integration_id(integration_id, opts = {})
574
+ data, _status_code, _headers = get_messaging_integrations_twitter_integration_id_with_http_info(integration_id, opts)
575
+ return data
576
+ end
577
+
578
+ # Get a Twitter messaging integration
579
+ #
580
+ # @param integration_id Integration ID
581
+ # @param [Hash] opts the optional parameters
582
+ # @return [Array<(TwitterIntegration, Fixnum, Hash)>] TwitterIntegration data, response status code and response headers
583
+ def get_messaging_integrations_twitter_integration_id_with_http_info(integration_id, opts = {})
584
+ if @api_client.config.debugging
585
+ @api_client.config.logger.debug "Calling API: MessagingApi.get_messaging_integrations_twitter_integration_id ..."
586
+ end
587
+
588
+
589
+ # verify the required parameter 'integration_id' is set
590
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling MessagingApi.get_messaging_integrations_twitter_integration_id" if integration_id.nil?
591
+
592
+
593
+
594
+
595
+
596
+ # resource path
597
+ local_var_path = "/api/v2/messaging/integrations/twitter/{integrationId}".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
598
+
599
+ # query parameters
600
+ query_params = {}
601
+
602
+ # header parameters
603
+ header_params = {}
604
+
605
+ # HTTP header 'Accept' (if needed)
606
+ local_header_accept = ['application/json']
607
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
608
+
609
+ # HTTP header 'Content-Type'
610
+ local_header_content_type = ['application/json']
611
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
612
+
613
+ # form parameters
614
+ form_params = {}
615
+
616
+ # http body (model)
617
+ post_body = nil
618
+
619
+ auth_names = ['PureCloud Auth']
620
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
621
+ :header_params => header_params,
622
+ :query_params => query_params,
623
+ :form_params => form_params,
624
+ :body => post_body,
625
+ :auth_names => auth_names,
626
+ :return_type => 'TwitterIntegration')
627
+ if @api_client.config.debugging
628
+ @api_client.config.logger.debug "API called: MessagingApi#get_messaging_integrations_twitter_integration_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
629
+ end
630
+ return data, status_code, headers
631
+ end
632
+
633
+ # Get a list of Messaging Stickers
634
+ #
635
+ # @param messenger_type Messenger Type
636
+ # @param [Hash] opts the optional parameters
637
+ # @option opts [Integer] :page_size Page size (default to 25)
638
+ # @option opts [Integer] :page_number Page number (default to 1)
639
+ # @return [MessagingStickerEntityListing]
640
+ def get_messaging_sticker(messenger_type, opts = {})
641
+ data, _status_code, _headers = get_messaging_sticker_with_http_info(messenger_type, opts)
642
+ return data
643
+ end
644
+
645
+ # Get a list of Messaging Stickers
646
+ #
647
+ # @param messenger_type Messenger Type
648
+ # @param [Hash] opts the optional parameters
649
+ # @option opts [Integer] :page_size Page size
650
+ # @option opts [Integer] :page_number Page number
651
+ # @return [Array<(MessagingStickerEntityListing, Fixnum, Hash)>] MessagingStickerEntityListing data, response status code and response headers
652
+ def get_messaging_sticker_with_http_info(messenger_type, opts = {})
653
+ if @api_client.config.debugging
654
+ @api_client.config.logger.debug "Calling API: MessagingApi.get_messaging_sticker ..."
655
+ end
656
+
657
+
658
+ # verify the required parameter 'messenger_type' is set
659
+ fail ArgumentError, "Missing the required parameter 'messenger_type' when calling MessagingApi.get_messaging_sticker" if messenger_type.nil?
660
+
661
+
662
+
663
+
664
+
665
+
666
+
667
+
668
+
669
+
670
+
671
+
672
+
673
+
674
+
675
+
676
+
677
+ # resource path
678
+ local_var_path = "/api/v2/messaging/stickers/{messengerType}".sub('{format}','json').sub('{' + 'messengerType' + '}', messenger_type.to_s)
679
+
680
+ # query parameters
681
+ query_params = {}
682
+ query_params[:'pageSize'] = opts[:'page_size'] if opts[:'page_size']
683
+ query_params[:'pageNumber'] = opts[:'page_number'] if opts[:'page_number']
684
+
685
+ # header parameters
686
+ header_params = {}
687
+
688
+ # HTTP header 'Accept' (if needed)
689
+ local_header_accept = ['application/json']
690
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
691
+
692
+ # HTTP header 'Content-Type'
693
+ local_header_content_type = ['application/json']
694
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
695
+
696
+ # form parameters
697
+ form_params = {}
698
+
699
+ # http body (model)
700
+ post_body = nil
701
+
702
+ auth_names = ['PureCloud Auth']
703
+ data, status_code, headers = @api_client.call_api(:GET, local_var_path,
704
+ :header_params => header_params,
705
+ :query_params => query_params,
706
+ :form_params => form_params,
707
+ :body => post_body,
708
+ :auth_names => auth_names,
709
+ :return_type => 'MessagingStickerEntityListing')
710
+ if @api_client.config.debugging
711
+ @api_client.config.logger.debug "API called: MessagingApi#get_messaging_sticker\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
712
+ end
713
+ return data, status_code, headers
714
+ end
715
+
716
+ # Create a Facebook Integration
717
+ #
718
+ # @param body FacebookIntegrationRequest
719
+ # @param [Hash] opts the optional parameters
720
+ # @return [FacebookIntegration]
721
+ def post_messaging_integrations_facebook(body, opts = {})
722
+ data, _status_code, _headers = post_messaging_integrations_facebook_with_http_info(body, opts)
723
+ return data
724
+ end
725
+
726
+ # Create a Facebook Integration
727
+ #
728
+ # @param body FacebookIntegrationRequest
729
+ # @param [Hash] opts the optional parameters
730
+ # @return [Array<(FacebookIntegration, Fixnum, Hash)>] FacebookIntegration data, response status code and response headers
731
+ def post_messaging_integrations_facebook_with_http_info(body, opts = {})
732
+ if @api_client.config.debugging
733
+ @api_client.config.logger.debug "Calling API: MessagingApi.post_messaging_integrations_facebook ..."
734
+ end
735
+
736
+
737
+ # verify the required parameter 'body' is set
738
+ fail ArgumentError, "Missing the required parameter 'body' when calling MessagingApi.post_messaging_integrations_facebook" if body.nil?
739
+
740
+
741
+
742
+
743
+
744
+ # resource path
745
+ local_var_path = "/api/v2/messaging/integrations/facebook".sub('{format}','json')
746
+
747
+ # query parameters
748
+ query_params = {}
749
+
750
+ # header parameters
751
+ header_params = {}
752
+
753
+ # HTTP header 'Accept' (if needed)
754
+ local_header_accept = ['application/json']
755
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
756
+
757
+ # HTTP header 'Content-Type'
758
+ local_header_content_type = ['application/json']
759
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
760
+
761
+ # form parameters
762
+ form_params = {}
763
+
764
+ # http body (model)
765
+ post_body = @api_client.object_to_http_body(body)
766
+
767
+ auth_names = ['PureCloud Auth']
768
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
769
+ :header_params => header_params,
770
+ :query_params => query_params,
771
+ :form_params => form_params,
772
+ :body => post_body,
773
+ :auth_names => auth_names,
774
+ :return_type => 'FacebookIntegration')
775
+ if @api_client.config.debugging
776
+ @api_client.config.logger.debug "API called: MessagingApi#post_messaging_integrations_facebook\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
777
+ end
778
+ return data, status_code, headers
779
+ end
780
+
781
+ # Create a LINE messenger Integration
782
+ #
783
+ # @param body LineIntegrationRequest
784
+ # @param [Hash] opts the optional parameters
785
+ # @return [LineIntegration]
786
+ def post_messaging_integrations_line(body, opts = {})
787
+ data, _status_code, _headers = post_messaging_integrations_line_with_http_info(body, opts)
788
+ return data
789
+ end
790
+
791
+ # Create a LINE messenger Integration
792
+ #
793
+ # @param body LineIntegrationRequest
794
+ # @param [Hash] opts the optional parameters
795
+ # @return [Array<(LineIntegration, Fixnum, Hash)>] LineIntegration data, response status code and response headers
796
+ def post_messaging_integrations_line_with_http_info(body, opts = {})
797
+ if @api_client.config.debugging
798
+ @api_client.config.logger.debug "Calling API: MessagingApi.post_messaging_integrations_line ..."
799
+ end
800
+
801
+
802
+ # verify the required parameter 'body' is set
803
+ fail ArgumentError, "Missing the required parameter 'body' when calling MessagingApi.post_messaging_integrations_line" if body.nil?
804
+
805
+
806
+
807
+
808
+
809
+ # resource path
810
+ local_var_path = "/api/v2/messaging/integrations/line".sub('{format}','json')
811
+
812
+ # query parameters
813
+ query_params = {}
814
+
815
+ # header parameters
816
+ header_params = {}
817
+
818
+ # HTTP header 'Accept' (if needed)
819
+ local_header_accept = ['application/json']
820
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
821
+
822
+ # HTTP header 'Content-Type'
823
+ local_header_content_type = ['application/json']
824
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
825
+
826
+ # form parameters
827
+ form_params = {}
828
+
829
+ # http body (model)
830
+ post_body = @api_client.object_to_http_body(body)
831
+
832
+ auth_names = ['PureCloud Auth']
833
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
834
+ :header_params => header_params,
835
+ :query_params => query_params,
836
+ :form_params => form_params,
837
+ :body => post_body,
838
+ :auth_names => auth_names,
839
+ :return_type => 'LineIntegration')
840
+ if @api_client.config.debugging
841
+ @api_client.config.logger.debug "API called: MessagingApi#post_messaging_integrations_line\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
842
+ end
843
+ return data, status_code, headers
844
+ end
845
+
846
+ # Webhook redirect for LINE messenger Integration
847
+ #
848
+ # @param integration_id Integration ID
849
+ # @param [Hash] opts the optional parameters
850
+ # @return [nil]
851
+ def post_messaging_integrations_line_webhook_integration_id(integration_id, opts = {})
852
+ post_messaging_integrations_line_webhook_integration_id_with_http_info(integration_id, opts)
853
+ return nil
854
+ end
855
+
856
+ # Webhook redirect for LINE messenger Integration
857
+ #
858
+ # @param integration_id Integration ID
859
+ # @param [Hash] opts the optional parameters
860
+ # @return [Array<(nil, Fixnum, Hash)>] nil, response status code and response headers
861
+ def post_messaging_integrations_line_webhook_integration_id_with_http_info(integration_id, opts = {})
862
+ if @api_client.config.debugging
863
+ @api_client.config.logger.debug "Calling API: MessagingApi.post_messaging_integrations_line_webhook_integration_id ..."
864
+ end
865
+
866
+
867
+ # verify the required parameter 'integration_id' is set
868
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling MessagingApi.post_messaging_integrations_line_webhook_integration_id" if integration_id.nil?
869
+
870
+
871
+
872
+
873
+
874
+ # resource path
875
+ local_var_path = "/api/v2/messaging/integrations/line/webhook/{integrationId}".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
876
+
877
+ # query parameters
878
+ query_params = {}
879
+
880
+ # header parameters
881
+ header_params = {}
882
+
883
+ # HTTP header 'Accept' (if needed)
884
+ local_header_accept = ['application/json']
885
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
886
+
887
+ # HTTP header 'Content-Type'
888
+ local_header_content_type = ['application/json']
889
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
890
+
891
+ # form parameters
892
+ form_params = {}
893
+
894
+ # http body (model)
895
+ post_body = nil
896
+
897
+ auth_names = ['PureCloud Auth']
898
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
899
+ :header_params => header_params,
900
+ :query_params => query_params,
901
+ :form_params => form_params,
902
+ :body => post_body,
903
+ :auth_names => auth_names)
904
+ if @api_client.config.debugging
905
+ @api_client.config.logger.debug "API called: MessagingApi#post_messaging_integrations_line_webhook_integration_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
906
+ end
907
+ return data, status_code, headers
908
+ end
909
+
910
+ # Create a Twitter Integration
911
+ #
912
+ # @param body TwitterIntegrationRequest
913
+ # @param [Hash] opts the optional parameters
914
+ # @return [TwitterIntegration]
915
+ def post_messaging_integrations_twitter(body, opts = {})
916
+ data, _status_code, _headers = post_messaging_integrations_twitter_with_http_info(body, opts)
917
+ return data
918
+ end
919
+
920
+ # Create a Twitter Integration
921
+ #
922
+ # @param body TwitterIntegrationRequest
923
+ # @param [Hash] opts the optional parameters
924
+ # @return [Array<(TwitterIntegration, Fixnum, Hash)>] TwitterIntegration data, response status code and response headers
925
+ def post_messaging_integrations_twitter_with_http_info(body, opts = {})
926
+ if @api_client.config.debugging
927
+ @api_client.config.logger.debug "Calling API: MessagingApi.post_messaging_integrations_twitter ..."
928
+ end
929
+
930
+
931
+ # verify the required parameter 'body' is set
932
+ fail ArgumentError, "Missing the required parameter 'body' when calling MessagingApi.post_messaging_integrations_twitter" if body.nil?
933
+
934
+
935
+
936
+
937
+
938
+ # resource path
939
+ local_var_path = "/api/v2/messaging/integrations/twitter".sub('{format}','json')
940
+
941
+ # query parameters
942
+ query_params = {}
943
+
944
+ # header parameters
945
+ header_params = {}
946
+
947
+ # HTTP header 'Accept' (if needed)
948
+ local_header_accept = ['application/json']
949
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
950
+
951
+ # HTTP header 'Content-Type'
952
+ local_header_content_type = ['application/json']
953
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
954
+
955
+ # form parameters
956
+ form_params = {}
957
+
958
+ # http body (model)
959
+ post_body = @api_client.object_to_http_body(body)
960
+
961
+ auth_names = ['PureCloud Auth']
962
+ data, status_code, headers = @api_client.call_api(:POST, local_var_path,
963
+ :header_params => header_params,
964
+ :query_params => query_params,
965
+ :form_params => form_params,
966
+ :body => post_body,
967
+ :auth_names => auth_names,
968
+ :return_type => 'TwitterIntegration')
969
+ if @api_client.config.debugging
970
+ @api_client.config.logger.debug "API called: MessagingApi#post_messaging_integrations_twitter\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
971
+ end
972
+ return data, status_code, headers
973
+ end
974
+
975
+ # Update a LINE messenger integration
976
+ #
977
+ # @param integration_id Integration ID
978
+ # @param body LineIntegrationRequest
979
+ # @param [Hash] opts the optional parameters
980
+ # @return [LineIntegration]
981
+ def put_messaging_integrations_line_integration_id(integration_id, body, opts = {})
982
+ data, _status_code, _headers = put_messaging_integrations_line_integration_id_with_http_info(integration_id, body, opts)
983
+ return data
984
+ end
985
+
986
+ # Update a LINE messenger integration
987
+ #
988
+ # @param integration_id Integration ID
989
+ # @param body LineIntegrationRequest
990
+ # @param [Hash] opts the optional parameters
991
+ # @return [Array<(LineIntegration, Fixnum, Hash)>] LineIntegration data, response status code and response headers
992
+ def put_messaging_integrations_line_integration_id_with_http_info(integration_id, body, opts = {})
993
+ if @api_client.config.debugging
994
+ @api_client.config.logger.debug "Calling API: MessagingApi.put_messaging_integrations_line_integration_id ..."
995
+ end
996
+
997
+
998
+ # verify the required parameter 'integration_id' is set
999
+ fail ArgumentError, "Missing the required parameter 'integration_id' when calling MessagingApi.put_messaging_integrations_line_integration_id" if integration_id.nil?
1000
+
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+ # verify the required parameter 'body' is set
1007
+ fail ArgumentError, "Missing the required parameter 'body' when calling MessagingApi.put_messaging_integrations_line_integration_id" if body.nil?
1008
+
1009
+
1010
+
1011
+
1012
+
1013
+ # resource path
1014
+ local_var_path = "/api/v2/messaging/integrations/line/{integrationId}".sub('{format}','json').sub('{' + 'integrationId' + '}', integration_id.to_s)
1015
+
1016
+ # query parameters
1017
+ query_params = {}
1018
+
1019
+ # header parameters
1020
+ header_params = {}
1021
+
1022
+ # HTTP header 'Accept' (if needed)
1023
+ local_header_accept = ['application/json']
1024
+ local_header_accept_result = @api_client.select_header_accept(local_header_accept) and header_params['Accept'] = local_header_accept_result
1025
+
1026
+ # HTTP header 'Content-Type'
1027
+ local_header_content_type = ['application/json']
1028
+ header_params['Content-Type'] = @api_client.select_header_content_type(local_header_content_type)
1029
+
1030
+ # form parameters
1031
+ form_params = {}
1032
+
1033
+ # http body (model)
1034
+ post_body = @api_client.object_to_http_body(body)
1035
+
1036
+ auth_names = ['PureCloud Auth']
1037
+ data, status_code, headers = @api_client.call_api(:PUT, local_var_path,
1038
+ :header_params => header_params,
1039
+ :query_params => query_params,
1040
+ :form_params => form_params,
1041
+ :body => post_body,
1042
+ :auth_names => auth_names,
1043
+ :return_type => 'LineIntegration')
1044
+ if @api_client.config.debugging
1045
+ @api_client.config.logger.debug "API called: MessagingApi#put_messaging_integrations_line_integration_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}"
1046
+ end
1047
+ return data, status_code, headers
1048
+ end
1049
+ end
1050
+ end