Merge_Vars, Groups, hidden data and Classic ASP?

252 views
Skip to first unread message

manamath

unread,
Dec 15, 2009, 12:25:34 PM12/15/09
to MailChimp API Discuss
I have a classic ASP function that calls the listSubscribe method in
the API. I am having difficulty passing the merge_vars data. Classic
ASP does not support array keys and I haven’t been able to find
documentation showing how to pass the demographic data we collect to
the MailChimp system. We also have groups and hidden values in our
forms and I am not sure how we pass that information into the
MailChimp system using the APIs.

I have tried the method call and “merge_vars=&FName=>{data}&LName=>
{data}&addr1={data}” etc
And I have tried
“merge_vars=& {data} {data} {data}” etc

So how do I pass group, hidden data and merge_vars data through the
method in Classic ASP?

Thanks,
ManaMath

jesse

unread,
Dec 15, 2009, 12:41:16 PM12/15/09
to MailChimp API Discuss
It sounds like this is really just a question of how to build arrays
in URLs and not anything related to the language being used. Assuming
that is correct, look at how it's done in example #4 here:
http://www.mailchimp.com/api/examples/#ex4


jesse

manamath

unread,
Dec 15, 2009, 1:12:57 PM12/15/09
to MailChimp API Discuss
Thanks for pointing me in the right direction for the merge_vars
part. I am still having difficulty with the groups.

I typed in the text on our groups page exactly as it was listed and
added this text to merge_vars[INTERESTS]=var String but this didn't
cause listSubscribe to add that information to my test subscriber.

Any additional help is greatly appreciated.

Thanks,
ManaMath

jesse

unread,
Dec 15, 2009, 2:51:26 PM12/15/09
to MailChimp API Discuss
That's the correct way to pass them. Typically when people have
problems with groups they either aren't passing the exact name (they
are case sensitive) or they have an older list that managed to get
spaces before or after the group names. For the latter case, you can
simply load the Interest Groups page and click save again to make sure
that's not the case.



jesse

manamath

unread,
Dec 15, 2009, 3:07:07 PM12/15/09
to MailChimp API Discuss
Thanks again. It wasn't extra spaces in the group name. I
accidentally escaped the comma separating my two lists so the API was
looking for one long list name instead of two.

Thanks again,
ManaMath
Reply all
Reply to author
Forward
0 new messages