method .templates() is not working

Apr 15, 2013 at 10:34 AM
Hi guys,

I would like to get all the custom templates which I have created in mailchimp using API. So I'm using .templates() method but it is not working.

MailChimp.Types.Template.Inactives arr1 = new MailChimp.Types.Template.Inactives();
        MailChimp.Types.Opt<MailChimp.Types.Template.Inactives> OI = new MailChimp.Types.Opt<MailChimp.Types.Template.Inactives>(arr1.Include);
        MailChimp.Types.Template.Types temp = new MailChimp.Types.Template.Types();
        MailChimp.Types.Opt<MailChimp.Types.Template.Type> OTemp = new MailChimp.Types.Opt<MailChimp.Types.Template.Type>(MailChimp.Types.Template.Type.User);
        MailChimp.Types.Opt<string> str1 = new MailChimp.Types.Opt<string>("My Templates");
        MailChimp.Types.MCList<MailChimp.Types.Template.Types> lst1 = new MailChimp.Types.MCList<MailChimp.Types.Template.Types>();

        objMCApi.Templates(OTemp, OI, str1);
Kindy help asap.

Regards
Darpan