module PIM::Services::MessagingService
Public Instance Methods
get_messaging_asset_content(messaging_asset_id)
click to toggle source
# File services.rb, line 3624 def get_messaging_asset_content messaging_asset_id return __messagingService.get_messaging_asset_content(messaging_asset_id) end
get_messaging_asset_content_stream(messaging_asset_id)
click to toggle source
# File services.rb, line 3650 def get_messaging_asset_content_stream messaging_asset_id content = get_messaging_asset_content(messaging_asset_id) return content.content_stream unless content.nil? end
update_message(reference_message_id, new_status, status_message, response_id)
click to toggle source
# File services.rb, line 3620 def update_message reference_message_id, new_status, status_message, response_id __messagingService.updateMessagingAsset(reference_message_id, new_status, status_message, response_id) end
upload_inbound_message_from_stream(stream, filename, content_type, channel_id, legacy_connector_message_id = nil, connector_message_id: nil, import_sequentially: nil, sequential_import_group: nil)
click to toggle source
Upload a “stream” as new inbound message. Specify appropriate ‘filename’, ‘content_type’ and ‘channel_id’. Optionally specify ‘connector_message_id’, ‘import_sequentially’ (true/false) and ‘sequential_import_group’ as “kwargs” Returns the created MessagingAsset. Note: Not specifying a “sequential_import_group” or leaving it empty will NOT disable the sequential import, but instead use the ‘DEFAULT-GROUP’! To disable sequential imports, explicitly set “import_sequentially: false”!
# File services.rb, line 3637 def upload_inbound_message_from_stream stream, filename, content_type, channel_id, legacy_connector_message_id = nil, connector_message_id: nil, import_sequentially: nil, sequential_import_group: nil __messagingService.uploadInboundMessagingAsset(stream, filename, content_type, import_sequentially, sequential_import_group, channel_id, (connector_message_id || legacy_connector_message_id)) end