[5.0.1]
- Update upsert function to throw an Exception in case of any errors during the request
[5.0.0]
[5.0.0-alpha]
- Calendar construct will now require clientId, clientSecret and token as required readonly parameters
public function __construct(
private readonly string $clientId,
private readonly string $clientSecret,
private readonly string $token,
array $args = []
)
-
Sync method is removed. Call push/pull to send and receive events from outlook
-
Get event and get event instances will require outlook id instead of url
public function getEventBy(
string $id,
?EventItemRequestBuilderGetQueryParameters $params = null,
?Closure $beforeReturn = null,
array $args = []
): ?ReaderEntityInterface
public function getEventInstances(
string $id,
?InstancesRequestBuilderGetQueryParameters $params = null,
array $args = []
): void
-
Writer/Delete entities are removed and are replaced by outlook model Event
-
Delete method will not return any response except a 204 status code
-
Batch push events will now return a generator instead of Batch Response entity
public function handleBatchResponse(?Generator $responses = null): void;
- Update deleteEventLocal type declaration to ?string
public function deleteEventLocal(?string $eventId): void
- None or very limited changes to Token handler
- construct now requires clientId, clientSecret and token as required readonly parameters
public function __construct(
private readonly string $clientId,
private readonly string $clientSecret,
private readonly string $token,
array $args = []
)
- Preparing for subscription
$subEntity = new \Microsoft\Graph\Generated\Models\Subscription();
$msEntity->setChangeType('created,deleted,updated,missed');
// reachable and should return a 200 response with same validation token param
$msEntity->setNotificationUrl('{{notificationUrl}}');
// required to get reauthorizationRequired notifications, subscription removed notifications & missed notifications
$msEntity->setLifecycleNotificationUrl('{{lifeTimeNotUrl}}');
$msEntity->setResource('me/events');
// Random client state generated by the app, will be sent on all outlook notifications
$msEntity->setClientState(\Ramsey\Uuid\Uuid::uuid4()->toString());
- Subscription entity will not be available anymore. The graph api sdk Subscription model and entity is used instead.
public function subscribe(
Microsoft\Graph\Generated\Models\Subscription $subscriptionEntity, array $args = []
): ?Microsoft\Graph\Generated\Models\Subscription
- Renew subscription will only update the expiry date of the token.
public function renew(
string $subscriptionId,
\DateTime $expiration,
array $args = []
): ?Microsoft\Graph\Generated\Models\Subscription
- With the new graph api the sequence number will not be available. Call the event api to get the changes and validate it.
- 2 - Add support for outlook push notifications
- 82ef0 - Add retry handler for batch push
- 5ac8b - Ability to pass skip query params to connection handler
- 2bf32, 54e1f, e5e0d - Add support for batch requests
- 4b134 - Remove concurrent pool upsert request option
Initial Release.