$accessToken
$accessToken : string
A valid access token
Class GraphRequest
__construct(string $requestType, string $endpoint, string $accessToken, string $baseUrl, string $apiVersion)
Constructs a new Graph Request object
string | $requestType | The HTTP method to use, e.g. "GET" or "POST" |
string | $endpoint | The Graph endpoint to call |
string | $accessToken | A valid access token to validate the Graph call |
string | $baseUrl | The base URL to call |
string | $apiVersion | The API version to use |
upload(string $path, mixed $client = null) : \Microsoft\Graph\Http\An
Upload a file to OneDrive from a given location
string | $path | The path of the file to upload |
mixed | $client | The client to use in the request |
object or array of objects (DriveItems)