Retrieving list member information from mailchimp - limited fields returned - PHP -


trying synchronize member information mailchimp our local db. able request information, fname, lname , birthday fields. calling function:

$mailchimp_v3_service->get_list_members($list_id, $count, $offset) 

and getting list of stdclass objects:

stdclass object (   [id] => <an id>   [email_address] => <an email>   [unique_email_id] => <a unique email id>   [status] => unsubscribed   [merge_fields] => stdclass object     (         [fname] => testable         [lname] => contact         [birthday] =>      ) ) 

looking @ function call inside mailchimp code (mailchimpv3service.php), looks requesting more/different fields getting:

fields=members.id,members.email_address,members.status,members.unique_email_id,members.merge_fields.lname,members.merge_fields.fname,,members.merge_fields.phone

it looks function requesting phone, , not requesting birthday.

any thoughts?

ok, figured out issue - our support team adding phone number field accounts, depending on needed it. if there no phone field, it's not returned. lesson learned: check "list fields , |merge| tags" section. 8-/


Comments

Popular posts from this blog

ios - MKAnnotationView layer is not of expected type: MKLayer -

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -