Skip to content

Instantly share code, notes, and snippets.

@isvargasmsft
Last active Jul 7, 2022
Embed
What would you like to do?
Request builder pattern for PHP SDK 2.0.0-RC5
// v1.x
$response = $graphClient->createRequest('GET', '/users/userId/messages')
->setReturnType(Model\User::class)
->execute();
// v2.0-RC
$response = $graphServiceClient->usersById('userId')->messages()->get()->wait();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment