msgraph-sdk-php icon indicating copy to clipboard operation
msgraph-sdk-php copied to clipboard

graphclient is missing a BatchRequestRequestBuilder

Open andrueastman opened this issue 1 year ago • 0 comments

Taking a look at the example at

https://github.com/microsoftgraph/msgraph-sdk-php/blob/7fa86c054e315c5d6e081f3f1f3b963562c923f3/docs/Examples.md?plain=1#L658

The graph client is missing the setup of the BatchRequestRequestBuilder.

The code of the graphclient should have an batch() function returning the BatchRequestRequestBuilder so that the example/sample is simplified to

$batchResponse = $graphServiceClient->batch()->postAsync($batchRequestContent)->wait();

andrueastman avatar Sep 11 '24 17:09 andrueastman