danesparza / MailChimp.NET

:envelope: .NET Wrapper for the MailChimp v2.0 API
MIT License
179 stars 119 forks source link

MailChimp.Lists.MemberInfo.MemberMergeInfo changed! #104

Closed DBY77 closed 9 years ago

DBY77 commented 10 years ago

I can see that you have changed the MemberMergeInfo from a Dic of strings, to MergeVar

That might be okay when creating MyMergeVar : MergeVar, that I would use when subscribing members with BatchEmailParameter.

But when I call GetAllMembersForList() or GetMemberInfo() it cannot deserialize the list of MergeVars "merges" that comes from MailChimp to a MergeVar object.

Have you missed something here, or do I need to do something different?

jbkielis commented 10 years ago

I'm running into the same issue. Is there a workaround? Thanks.

HaroonWasim commented 10 years ago

Same Issue, please resolve this. Return Json is ok, but .NET wrapper does not parsing and displaying the data.

danesparza commented 10 years ago

@HaroonWasim Feel free to submit a pull request with fixes for this issue, or suggest what fix might be appropriate.

HaroonWasim commented 10 years ago

Thanks for replying @danesparza . ListMemberInfo function is returning every thing fine but issue is that, this function is not returning Merges i.e Merge Variables that we assosiated with our subscriber e.g First Name , Last Name and other merge variable. and one more thing is that return json result from mailchimp is OK. Return json contain these merge variables but when this json parse from your function it does not return merge variable. Please go through this and reply

Regards,

mdissel commented 10 years ago

I think the solution would be a object with the fixed properties (new-email, etc.), the Grouping object and a dictionary containing the mergevar fields with their values..

mdissel commented 10 years ago

Something like this: mailchimp mergevar with fieldvalues, MergeVar implements IDictionary to store field/value information and a custom (de-)serialize option https://gist.github.com/mdissel/6c9d8967a0c9e17675a5

vacek-cobra commented 10 years ago

Hi I update class MergeVar, can you update deserilization grouping!? Thanks