Help Me to get all campaigns with passing any input

Oct 12, 2010 at 10:59 PM

I am very new to this API... I just started learning this week its self..

I want to get the all campaigns from my account... I don't have any idea in using PerceptiveMCAPI.Methods.campaigns

please check my code:

public List<MCCampaign> GetCampaign()

{

MCAPI.Types.campaignsInput input = new MCAPI.Types.campaignsInput(   );
MCAPI.Methods.campaigns campaigns = new MCAPI.Methods.campaigns(input);
MCAPI.Types.campaignsOutput output = campaigns.Execute();

......................

..................

}

I have to get all campaigns regardless of any parameter like campaignId or listId etc). I checked the MailchimpAPI and its says the method campaign have a apikey parameter as mandatory but others are optional.. if i pass only the apikey parameter its throwing an error... without using any parameter it is giving null values in the output....do i need to add any filters or I don't know...please help me in this...thanks....

Coordinator
Oct 13, 2010 at 9:11 PM

You need to pass in the apikey.

But if you don't tell me what the error is that you are getting, I can't help you.

dbm