Sha256: 620ed538f956d9971ee7264cd17286348431c15d9a789b92bf6ef33bec29d79d

Contents?: true

Size: 660 Bytes

Versions: 3

Compression:

Stored size: 660 Bytes

Contents

require 'marketingcloudsdk'
require_relative 'sample_helper'

begin
	myclient = MarketingCloudSDK::Client.new auth
	ListID = "1956035"
	CSVFileName = "SDKExample.csv"
	
=begin
	* Parameters:
		* List ID  
		* File Name - File must be a CSV located on your ExactTarget FTP Site
=end
	
	response = myclient.CreateAndStartListImport(ListID, CSVFileName)
	p 'Response Status: ' + response.status.to_s
	p 'Code: ' + response.code.to_s
	p 'Message: ' + response.message.to_s	
	p 'Results Length: ' + response.results.length.to_s
	p 'Results: ' + response.results.to_s
	
rescue => e
	p "Caught exception: #{e.message}"
	p e.backtrace
end


Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
sfmc-fuelsdk-ruby-1.3.0 samples/sample-CreateAndStartListImport.rb
sfmc-fuelsdk-ruby-1.2.0 samples/sample-CreateAndStartListImport.rb
MyPreciousRuby1-1.1.0 samples/sample-CreateAndStartListImport.rb