diff --git a/Nextcloud/Nextcloud.php b/Nextcloud/Nextcloud.php index a71c42a0aa..dbaf4aa9ad 100644 --- a/Nextcloud/Nextcloud.php +++ b/Nextcloud/Nextcloud.php @@ -32,7 +32,7 @@ public function test() $username = $this->config->username; $test = parent::appTest( - $this->url("/ocs/v1.php/cloud/users/" . $username . "?format=json"), + $this->url("/ocs/v2.php/cloud/users/" . $username . "?format=json"), $this->getHeaders() ); echo $test->status; @@ -44,7 +44,7 @@ public function livestats() $username = $this->config->username; $res = parent::execute( - $this->url("/ocs/v1.php/cloud/users/" . $username . "?format=json"), + $this->url("/ocs/v2.php/cloud/users/" . $username . "?format=json"), $this->getHeaders() ); $details = json_decode($res->getBody()); diff --git a/Nextcloud/app.json b/Nextcloud/app.json index f5ec7b3204..84a4041614 100644 --- a/Nextcloud/app.json +++ b/Nextcloud/app.json @@ -14,7 +14,7 @@ }, "stat1": { "name": "Total", - "url": ":url:ocs/v1.php/cloud/users/:username:?format=json", + "url": ":url:ocs/v2.php/cloud/users/:username:?format=json", "key": "ocs.data.quota.total", "filter": "size", "updateOnChange": "No", @@ -22,7 +22,7 @@ }, "stat2": { "name": "Used", - "url": ":url:ocs/v1.php/cloud/users/:username:?format=json", + "url": ":url:ocs/v2.php/cloud/users/:username:?format=json", "key": "ocs.data.quota.used", "filter": "size", "updateOnChange": "No",