this classを使用しているときに、PHPを使用してユーザーのExchangeメールボックス内の未読メールをすべて取得するにはどうすればよいですか?私に言うことができる、このクラスでの経験を持つ誰もがPHP経由でExchange Webサービスから未読メールを取得する
Catchable fatal error: Object of class EWSType_FolderQueryTraversalType could not be converted to string
あります:私はこのエラーを取得するだけにして
$ews = new ExchangeWebServices("mailserver.domain.local", "user", "pass");
$request = new EWSType_FindFolderType();
$request->FolderShape = new EWSType_FolderResponseShapeType();
$request->FolderShape->BaseShape = EWSType_DefaultShapeNamesType::DEFAULT_PROPERTIES;
$request->ParentFolderIds = new EWSType_NonEmptyArrayOfBaseFolderIdsType();
$request->ParentFolderIds->DistinguishedFolderId = new EWSType_DistinguishedFolderIdType();
$request->ParentFolderIds->DistinguishedFolderId->Id = EWSType_DistinguishedFolderIdNameType::INBOX;
$request->Traversal = new EWSType_FolderQueryTraversalType();
$result = $ews->FindFolder($request);
var_dump($result);
:
は、私が最初のリストにこのようなフォルダの内容を考え出し私は間違っているの?私は文字列が渡されなければならないことを知っていますが、クラスが任意の機能または他の特性なしでわずか3定数を持っているようだ。..
新しい場所は次のとおりです。 https://github.com/jamesiarmes/php-ews/ – UnderDog