SpreadWebServcie.getCampaignID Method

 

It gets the email campaign id with campaign name.

public int getCampaignID (

string loginEmail,

string APIKey,

string CampaignName

)

Parameters

Parameter

Type

Description

loginEmail

String

The login email of your Spread account.

APIKey

String

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

CampaignName

String

The campaign's name.

Return Value

Integer of the ID of the campaign.

Example

string loginName = "spread@reasonables.com";

string APIKey = "434F3A43-04CB-40C2-890D-247A24F86DF3"; 

string CampaignName= "NoClone Promotion";

  

//Create a SpreadWebService object and use its method.

SpreadWebService MySpread = new SpreadWebService();

 

int campaignID = MySpread.getCampaignID (loginName, loginPassword, CampaignName);

See Also

SpreadWebService Class | Spread Web Service Namespace