Skip to content
Snippets Groups Projects
Commit 948eb344 authored by Rasmus Fuhse's avatar Rasmus Fuhse
Browse files

debugging

parent 66437812
No related branches found
No related tags found
No related merge requests found
......@@ -28,6 +28,24 @@ class OwnCloudPlugin extends StudIPPlugin implements FilesystemPlugin {
}
$webdav = $url . "remote.php/webdav";
$header = array();
$header[] = "Authorization: Bearer ".\Owncloud\OAuth::getAccessToken();
$r = curl_init();
curl_setopt($r, CURLOPT_URL, $webdav);
curl_setopt($r, CURLOPT_HTTPHEADER, ($header));
curl_setopt($r, CURLOPT_RETURNTRANSFER, 1);
$json = curl_exec($r);
curl_close($r);
var_dump($json);
die();
$client = new \Sabre\DAV\Client(array(
'baseUri' => $webdav
));
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment