0
Microsoft Graph APIを使用して、Office 365サーバーにドキュメントをコピーしています。私は正常に動作するこのコードを使用していますMicrosoft Graph APIは、ドキュメントをオンプレミスサーバーにコピーできますか?
$handle = fopen($_FILES["file"]["tmp_name"], 'r+');
$stream = new GuzzleHttp\Psr7\Stream($handle);
$body = GuzzleHttp\Psr7\stream_for($stream->getContents());
$token = $_SESSION['access_token'];
$graph = new Graph();
$graph->setAccessToken($token);
$request = $graph->createRequest("put", '/me/drive/root:/' . $orgFileName . ':/content');
$request->attachBody($body);
$response = $request->execute();
ファイルをオンプレミスサーバーにコピーする方法はありますか?