Sha256: 054db67d0378cf4b39931f85c7efa1c435ab03ee64fd196e35acc0363a1062b9

Contents?: true

Size: 613 Bytes

Versions: 2

Compression:

Stored size: 613 Bytes

Contents

require 'fuelsdk'
require_relative 'sample_helper'

begin
	myclient = FuelSDK::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

2 entries across 2 versions & 2 rubygems

Version Path
marketingcloudsdk-1.0.0 samples/sample-CreateAndStartListImport.rb
fuelsdk_json_bump-0.0.5 samples/sample-CreateAndStartListImport.rb