Unable to recognize the Microsoft/Graph/Graph import
Shruti2481 opened this issue · 1 comments
Shruti2481 commented
I am using Microsoft Graph PHP SDK ^2.8 version.
I am getting error by using the below code:
use Microsoft\Graph\Graph;
$graph = new Graph();
$graph->setAccessToken($accessToken);
The package is unable to find the Graph class and not recognizing the use Microsoft\Graph\Graph; import.
Help me find the solution, I am stuck on this.
SilasKenneth commented
Hi @Shruti2481,
Which reference are you following on using the library? (We need to fix the reference you are using since your code is for an older version of the SDK which is not supported).
This is related to #1522.
Kindly check the link in the reply on how to use the SDK.