Skip to content

Commit ac2b655

Browse files
TechSupport26Zeph Thompson
andauthored
Updating Nextcloud API (#803)
* Updating Nextcloud API * Update Nextcloud.php update url * Update app.json Update url * Update Nextcloud.php Add / --------- Co-authored-by: Zeph Thompson <[email protected]>
1 parent 8e7b8b0 commit ac2b655

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Nextcloud/Nextcloud.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ public function test()
3232
$username = $this->config->username;
3333

3434
$test = parent::appTest(
35-
$this->url("/ocs/v1.php/cloud/users/" . $username . "?format=json"),
35+
$this->url("/ocs/v2.php/cloud/users/" . $username . "?format=json"),
3636
$this->getHeaders()
3737
);
3838
echo $test->status;
@@ -44,7 +44,7 @@ public function livestats()
4444

4545
$username = $this->config->username;
4646
$res = parent::execute(
47-
$this->url("/ocs/v1.php/cloud/users/" . $username . "?format=json"),
47+
$this->url("/ocs/v2.php/cloud/users/" . $username . "?format=json"),
4848
$this->getHeaders()
4949
);
5050
$details = json_decode($res->getBody());

Nextcloud/app.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,15 +14,15 @@
1414
},
1515
"stat1": {
1616
"name": "Total",
17-
"url": ":url:ocs/v1.php/cloud/users/:username:?format=json",
17+
"url": ":url:ocs/v2.php/cloud/users/:username:?format=json",
1818
"key": "ocs.data.quota.total",
1919
"filter": "size",
2020
"updateOnChange": "No",
2121
"suffix": ""
2222
},
2323
"stat2": {
2424
"name": "Used",
25-
"url": ":url:ocs/v1.php/cloud/users/:username:?format=json",
25+
"url": ":url:ocs/v2.php/cloud/users/:username:?format=json",
2626
"key": "ocs.data.quota.used",
2727
"filter": "size",
2828
"updateOnChange": "No",

0 commit comments

Comments
 (0)