我想使用jamesiarmes / php-ews将事件直接发布到另一个用户的日历中,但是在示例中,我仅找到了如何通过邀请进行事件。
我拥有管理员帐户,因此可以直接在athers用户的日历中写信。
我并不是很了解,因为我是新手,所以需要帮助。
var cityColumn = [['avila'], ['burgos'], ['madrid'], ['sevilla']];
var cityRow = [['avila', 'avila', 'burgos', 'madrid', 'sevilla']];
var cityCell = [['sevilla']];
function upperCaseArray(myArray) {
var upperized = myArray.map(function(city){
return city.join(',').toUpperCase().split(',');
});
return upperized;
}
console.log(upperCaseArray(cityColumn));
console.log(upperCaseArray(cityRow));
console.log(upperCaseArray(cityCell));
答案 0 :(得分:1)
您定义了参加者,但错过了您要在其中创建活动的帐户:在$response
...
$request->Items->CalendarItem[] = $event;
//following lines are missing
$lsEmail = 'some@email.de';
$request->SavedItemFolderId = new TargetFolderIdType();
$request->SavedItemFolderId->DistinguishedFolderId = new DistinguishedFolderIdType();
$request->SavedItemFolderId->DistinguishedFolderId->Id = self::DISTINGUISHED_FOLDER_ID;
$request->SavedItemFolderId->DistinguishedFolderId->Mailbox = new EmailAddressType();
$request->SavedItemFolderId->DistinguishedFolderId->Mailbox->EmailAddress = $lsEmail;
// here your code continues
$response = $client->CreateItem($request);
...