hanzoai / gochimp3

🐒 Golang client for MailChimp API 3.0.

Home Page:https://github.com/zeekay/gochimp3

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

API not being attached correctly in GetListMembers call

shahzilabid opened this issue · comments

https://github.com/hanzoai/gochimp3/blob/master/members.go#L110

api will be nil in the returned list given this logic. Logic should be:

for idx := 0; idx < len(response.Members); idx++ { v := response.Members[idx] v.api = list.api response.Members[idx] = v }