Skip to content

Latest commit

 

History

History
20 lines (13 loc) · 512 Bytes

File metadata and controls

20 lines (13 loc) · 512 Bytes
description Automatically generated file. DO NOT MODIFY
<?php
use Microsoft\Graph\GraphServiceClient;
use Microsoft\Graph\Generated\Users\Item\Events\Item\Accept\AcceptPostRequestBody;


$graphServiceClient = new GraphServiceClient($tokenRequestContext, $scopes);

$requestBody = new AcceptPostRequestBody();
$requestBody->setComment('comment-value');
$requestBody->setSendResponse(true);

$graphServiceClient->me()->events()->byEventId('event-id')->accept()->post($requestBody)->wait();