Some contacts have a status of REMOVED or OPT-OUT when querying them with the API. With these statuses the list array is empty.
I figured that this is the normal functionality. But for soem reason, when you look up the contact using the CC.com UI, the contact may belong to many lists and I can send them emails.
How come you can add this contact to list and send them emails, but once added to the list the API cannot get the list results?
The following contact is on 4 lists in the cc.com UI and I can send him emails. Why cant teh API query the lists he is on.
$contact_info = $cc->getContactByEmail(ACCESS_TOKEN, $email);
This works correctly if teh contact ahs an ACTIVE status.
 => Ctct\Components\Contacts\Contact Object ( [id] => 24 [status] => REMOVED [first_name] => XXXXX [middle_name] => [last_name] => [confirmed] => [source] => [email_addresses] => Array (  => Ctct\Components\Contacts\EmailAddress Object ( [id] => 100f5210-7dbc-11e3-b30a-d4ae5292b9a6 [status] => REMOVED [confirm_status] => NO_CONFIRMATION_REQUIRED [opt_in_source] => ACTION_BY_OWNER [opt_in_date] => 2013-07-23T14:13:51.000Z [opt_out_date] => 2014-02-07T05:00:00.000Z [email_address] => XXXXX ) ) [prefix_name] => [job_title] => [addresses] => Array (  => Ctct\Components\Contacts\Address Object ( [id] => 1268ab60-7dbc-11e3-b30a-d4ae5292b9a6 [line1] => [line2] => [line3] => [city] => 40 [address_type] => BUSINESS [state_code] => [country_code] => [postal_code] => [sub_postal_code] => ) ) [notes] => Array ( ) [company_name] => XXXXX [home_phone] => [work_phone] => [cell_phone] => [fax] => [custom_fields] => Array (  => Ctct\Components\Contacts\CustomField Object ( [name] => CustomField1 [value] => 110148 ) ) [lists] => Array ( ) [source_details] => )