0

Got All Contacts but how get email addresses?

Hello All,

I have been able to use Yahoo API (PHP SDK) to retrieve all contacts for user. In the response I do not see any email addresses for any contact. Do I need to make any other call to get that information? I have access to GUID, Nicknames, Yahooid .... and all that information for all contacts just not able to find how I can obtain email information for them. I need to send them invitations.

Following is my code in PHP: (from YSP PHP SDK)

.....
$user_contacts = $yahoo_user->getContacts($start,$count);
.......
foreach($user_contacts as $contact) {
foreach($contact as $obj) {
if(is_array($obj)) {
foreach($obj as $element) {
foreach($element->fields as $field) {
if ($field->type == 'email') {
echo $field->value, "  / ";
}

}
}
};
echo "<hr />";
}
}

Please advise.

- Mola

by
0 Replies

Recent Posts

in Contacts