I am using PHP-EWS to get a list of contact. This list of contact is a distribution list in the Contacts root folder.
Actually I am using this:
$ews = new ExchangeWebServices($server, $username, $password);
$request = new EWSType_FindItemType();
$request->ItemShape = new EWSType_ItemResponseShapeType();
$request->ItemShape->BaseShape = EWSType_DefaultShapeNamesType::ALL_PROPERTIES;
$request->ContactsView = new EWSType_ContactsViewType();
$request->ContactsView->InitialName = 'a';
$request->ContactsView->FinalName = 'z';
$request->ParentFolderIds->DistinguishedFolderId = new EWSType_DistinguishedFolderIdType();
$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::CONTACTS;
$request->Traversal = EWSType_ItemQueryTraversalType::SHALLOW;
$response = $ews->FindItem($request);
I am able to get the ID of the Distribution List, but I can't get the emails address in it. How could I get a stdClass Object of it or an array?