10/28/2019 4:41 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
10/28/2019 4:41 AM Learn how to use the Microsoft Graph PHP SDK to build you next integration with Office 365 Richard diZerega (@richdizz) Principal Software Engineer Commercial Software Engineering © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
SDK Features Available through Composer Build 2015 10/28/2019 4:41 AM SDK Features Available through Composer composer require microsoft/microsoft-graph Decoupled from authentication $graph = new Graph(); $graph->setAccessToken($accessToken); Request-based methods w/ strongly-typed deserialization $user = $graph->createRequest("GET", "/me") ->setReturnType(Model\User::class) ->execute(); © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
SDK Features Supports all Graph versions Build 2015 10/28/2019 4:41 AM SDK Features Supports all Graph versions $graph = new Graph(); $graph->setBaseUrl("https://graph.microsoft.com/") ->setApiVersion("beta") ->setAccessToken($_SESSION['access_token']); Intelligent paging $ptr = $graph->createCollectionRequest("GET", "/me/messages") ->setReturnType(Model\Message::class) ->setPageSize(2); while (!$ptr>isEnd()) { $docs = array_merge($docs,$ptr->getPage()); } © 2015 Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.
Demo Graph SDK for PHP
Start Developing Graph SDKs http://aka.ms/graphsdks Graph SDK for PHP http://aka.ms/graphsdk-php Microsoft Graph Github https://github.com/microsoftgraph StackOverflow [microsoftgraph]
10/28/2019 4:41 AM © Microsoft Corporation. All rights reserved. MICROSOFT MAKES NO WARRANTIES, EXPRESS, IMPLIED OR STATUTORY, AS TO THE INFORMATION IN THIS PRESENTATION.