как получить список всех файлов и папок с помощью php API в nextcloud - PullRequest
0 голосов
/ 21 октября 2019

Я пытаюсь получить доступ к файлам и папкам всех пользователей с нашего сервера nextcloud с помощью php API, но не могу найти никакого решения

    <?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 файлу

...