Skip to content

Commit

Permalink
Updating Nextcloud API
Browse files Browse the repository at this point in the history
  • Loading branch information
Zeph Thompson committed Nov 24, 2024
1 parent d71cb3b commit 3a7e117
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions Nextcloud/Nextcloud.php
Original file line number Diff line number Diff line change
Expand Up @@ -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/user" . $username . "?format=json"),
$this->getHeaders()
);
echo $test->status;
Expand All @@ -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/user" . $username . "?format=json"),
$this->getHeaders()
);
$details = json_decode($res->getBody());
Expand Down
4 changes: 2 additions & 2 deletions Nextcloud/app.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,15 @@
},
"stat1": {
"name": "Total",
"url": ":url:ocs/v1.php/cloud/users/:username:?format=json",
"url": ":url:ocs/v2.php/cloud/user/:username:?format=json",
"key": "ocs.data.quota.total",
"filter": "size",
"updateOnChange": "No",
"suffix": ""
},
"stat2": {
"name": "Used",
"url": ":url:ocs/v1.php/cloud/users/:username:?format=json",
"url": ":url:ocs/v2.php/cloud/user/:username:?format=json",
"key": "ocs.data.quota.used",
"filter": "size",
"updateOnChange": "No",
Expand Down

0 comments on commit 3a7e117

Please sign in to comment.