2.0.0 Release Candidate 14
Pre-release
Pre-release
Breaking Changes
- Fluent request builder pattern has changed where you'll need to access the resource first then filter it e.g.
// previously
$message = $graphServiceClient->usersById('userId')->messagesById('messageId')->get()->wait();
// now
$message = $graphServiceClient->users()->byUserId('userId')->messages()->byMessageId('messageId')->get()->wait();
- Passing custom response handlers is now done via a
ResponseHandlerOption
BatchRequestBuilder
has now changed namespaces fromMicrosoft\Graph\Core\Requests\BatchRequestBuilder
toMicrosoft\Graph\Beta\BatchRequestBuilder
to allow deserialization of errors during batch requests. See how to make batch requests using the SDK.- The
ApiException
thrown during failed requests no longer contains the raw HTTP/PSR response. Only the response status code and headers are available.
New Features
- Includes a
LargeFileUpload
task which automatically uploads files larger than 3MB in chunks using an upload session. - Introduces a
GraphPhpLeagueAuthenticationProvider
which by default requestshttps://graph.microsoft.com/.default
scopes. This decouples the KiotaPhpLeagueAuthenticationProvider
from Graph-specific defaults. - Code samples for the
PageIterator
task which enables you to page through a collection while applying a callback that is executed against each item in the collection. - Supports Continuous Access Evaluation. See samples
Bug Fixes
PATCH
requests for/content
endpoints now return the expected object. Previously the request succeeded but response body would not be deserialized.- Various serialization and deserialization issues with the
BatchRequest
task have been fixed.