如何在nextcloud中使用php API获取所有文件和文件夹的列表

时间:2019-10-21 07:56:35

标签: nextcloud

我正在尝试使用php API从我们的nextcloud服务器访问所有用户的文件和文件夹,但找不到任何解决方案

    <?php
    $handle = curl_init();
    $url = "http://3.17.189.167/remote.php/dav/files/atul123/";

    // Set the url
    curl_setopt($handle, CURLOPT_URL, $url);
    // Set the result output to be a string.
    curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "PROPFIND" ); 
    curl_setopt($handle, CURLOPT_RETURNTRANSFER, true);

    $output = curl_exec($handle);

    curl_close($handle);
    echo $output;
    ?>

需要查看从http://3.17.189.167到我的php文件的所有文件和文件夹

0 个答案:

没有答案