Releases: microsoftgraph/msgraph-beta-sdk-php
Releases · microsoftgraph/msgraph-beta-sdk-php
2.0.0 Release Candidate 16
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 BatchRequestBuilderhas now changed namespaces fromMicrosoft\Graph\Core\Requests\BatchRequestBuildertoMicrosoft\Graph\Beta\BatchRequestBuilderto allow deserialization of errors during batch requests. See how to make batch requests using the SDK.- The
ApiExceptionthrown during failed requests no longer contains the raw HTTP/PSR response. Only the response status code and headers are available.
New Features
- Includes a
LargeFileUploadtask which automatically uploads files larger than 3MB in chunks using an upload session. - Introduces a
GraphPhpLeagueAuthenticationProviderwhich by default requestshttps://graph.microsoft.com/.defaultscopes. This decouples the KiotaPhpLeagueAuthenticationProviderfrom Graph-specific defaults. - Code samples for the
PageIteratortask 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
PATCHrequests for/contentendpoints now return the expected object. Previously the request succeeded but response body would not be deserialized.- Various serialization and deserialization issues with the
BatchRequesttask have been fixed.
2.0.0 Release Candidate 14
What's Changed
- Merge pull request #117 from microsoftgraph/dev by @SilasKenneth in #119
- Bump graph core version by @Ndiritu in #120
- Generated changes using the fix on Kiota. by @SilasKenneth in #125
- Speed up static analysis using BleedingEdge phpstan switch 🚀 by @SilasKenneth in #122
- Generated beta models & request builders using Kiota by @github-actions in #129
- Generated beta models & request builders using Kiota by @github-actions in #131
- 2.0.0-RC14 by @Ndiritu in #133
Full Changelog: 2.0.0-RC13...2.0.0-RC14
2.0.0 Release Candidate 13
What's Changed
- Generated beta models & request builders using Kiota by @github-actions in #113
- Generated beta models & request builders using Kiota by @github-actions in #116
- Generated beta models & request builders using Kiota by @github-actions in #118
- 2.0.0-RC13 by @Ndiritu in #117
Full Changelog: 2.0.0-RC12...2.0.0-RC13
2.0.0 Release Candidate 12
What's Changed
- Merge pull request #105 from microsoftgraph/dev by @SilasKenneth in #108
- Generated beta models & request builders using Kiota by @github-actions in #109
- 2.0.0-RC12 by @Ndiritu in #110
Full Changelog: 2.0.0-RC11...2.0.0-RC12
2.0.0 Release Candidate 11
What's Changed
- Main by @Ndiritu in #102
- Generated beta models & request builders using Kiota by @github-actions in #103
- Generated beta models & request builders using Kiota by @github-actions in #104
- Generated beta models & request builders using Kiota by @github-actions in #106
- Generated beta models & request builders using Kiota by @github-actions in #107
- Release 2.0.0-RC11 by @Ndiritu in #105
Full Changelog: 2.0.0-RC10...2.0.0-RC11
2.0.0 Release Candidate 10
What's Changed
- Generated beta models & request builders using Kiota by @github-actions in #100
- Release 2.0.0-RC10 by @Ndiritu in #101
Full Changelog: 2.0.0-RC9...2.0.0-RC10
2.0.0 Release Candidate 9
What's Changed
- PATCH requests now return the deserialized response body.
- Merge pull request #94 from microsoftgraph/dev by @SilasKenneth in #95
- Generated beta models & request builders using Kiota by @github-actions in #98
- 2.0.0-RC9 Release by @Ndiritu in #99
Full Changelog: 2.0.0-RC8...2.0.0-RC9
2.0.0 Release Candidate 8
What's Changed
- Merge pull request #86 from microsoftgraph/dev by @SilasKenneth in #87
- Generated beta models & request builders using Kiota by @github-actions in #91
- Adding Microsoft SECURITY.MD by @microsoft-github-policy-service in #92
- 2.0.0-RC8 by @Ndiritu in #94
New Contributors
- @microsoft-github-policy-service made their first contribution in #92
Full Changelog: 2.0.0-RC7...2.0.0-RC8
2.0.0 Release Candidate 7
What's Changed
- Updated PHPDoc types for
$headersand$optionsattributes of request configuration objects for clarity:
@var array<string, string>|null $headers Request headersand@var array<string, RequestOption>|null $options Request options - Updated models and fluent API paths
Full Changelog: 2.0.0-RC6...2.0.0-RC7
2.0.0 Release Candidate 6
This release contains bug fixes and the following improvements:
- Authentication Provider that handles token fetching and refresh behind the scenes for you:
use Microsoft\Kiota\Authentication\Oauth\AuthorizationCodeContext;
use Microsoft\Kiota\Authentication\PhpLeagueAuthenticationProvider;
$tokenRequestContext = new AuthorizationCodeContext(
'tenantId',
'clientId',
'clientSecret',
'authCode',
'redirectUri'
);
$scopes = ['User.Read', 'Mail.Read'];
$authProvider = new PhpLeagueAuthenticationProvider($tokenRequestContext, $scopes);- A fluent API design:
$messages = $graphServiceClient->usersById(USER_ID)->messages()->get()->wait();More details in the Upgrade Guide and README