Upload Zip Creative Example

 

The following example demonstrates upload a email content .if campaignID is nothing ,create a new campaign . You can download ZIP template from here

Parameters

Parameter

Type

Description

loginEmail

String

The login email of your Spread account.

password

String

The password of your Spread account or API Key which you can retrieve from your Spread account (My account=> Settings).

fileStream

byte[]

The zip file stream.

campaignId

Int

The ID of the email campaign.

Return Value

True - if succeed

Example

string loginName = "spread@reasonables.com";

string loginPassword = "spread";

int campaignId = 123456;

 

System.IO.FileStream zipFileStream

=new System.IO.FileStream(@"D:\Uplode\output.zip",System.IO.FileMode.Open );

byte [] arrayByte = new byte [zipFileStream.Length ];

zipFileStream.Read (arrayByte,0,arrayByte.Length );

zipFileStream.Close();

 

SpreadWS.SpreadWebService mySpread = new SpreadWS.SpreadWebService();

bool result = mySpread.UplodeZipFile(loginName, loginPassword, arrayByte, campaignId);

See Also

SpreadWebService Class | Spread Web Service Namespace

Subscriber Class

DoubleOptIn Enumeration