// https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-api-overview.html#capabilities-api
// Should return an XML document on success.
export async function main(baseUrl: string) {
const resp = await fetch(`${baseUrl}/ocs/v1.php/cloud/capabilities`, {
headers: {
"OCS-APIRequest": "true",
},
});
if (!resp.ok) {
throw Error(`HTTP Error ${resp.status} - ${await resp.text()}`);
}
return await resp.text();
}
Submitted by hugo697 3 days ago
// https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-api-overview.html#capabilities-api
// Should return an XML document on success.
export async function main(baseUrl: string) {
const resp = await fetch(`${baseUrl}/ocs/v1.php/cloud/capabilities`, {
headers: {
"OCS-APIRequest": "true",
},
});
if (!resp.ok) {
throw Error(`HTTP Error ${resp.status} - ${await resp.text()}`);
}
return await resp.text();
}
Submitted by admin 635 days ago
// https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-api-overview.html#capabilities-api
// Should return an XML document on success.
export async function main(baseUrl: string) {
const resp = await fetch(`${baseUrl}/ocs/v1.php/cloud/capabilities`, {
headers: {
'OCS-APIRequest': 'true',
}
});
if (!resp.ok) {
throw Error(`HTTP Error ${resp.status} - ${await resp.text()}`);
}
return await resp.text();
}
Submitted by admin 638 days ago
import * as wmill from "https://deno.land/x/windmill@v1.85.0/mod.ts"
// https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-api-overview.html#capabilities-api
// Should return an XML document on success.
export async function main(baseUrl: string) {
const resp = await fetch(`${baseUrl}/ocs/v1.php/cloud/capabilities`, {
headers: {
'OCS-APIRequest': 'true',
}
});
if (!resp.ok) {
throw Error(`HTTP Error ${resp.status} - ${await resp.text()}`);
}
return await resp.text();
}
Submitted by adam186 767 days ago
import * as wmill from "https://deno.land/x/windmill@v1.70.1/mod.ts"
// https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-api-overview.html#capabilities-api
// Should return an XML document on success.
export async function main(baseUrl: string) {
const resp = await fetch(`${baseUrl}/ocs/v1.php/cloud/capabilities`, {
headers: {
'OCS-APIRequest': 'true',
}
});
if (!resp.ok) {
throw Error(`HTTP Error ${resp.status} - ${await resp.text()}`);
}
return await resp.text();
}
Submitted by adam186 802 days ago
import * as wmill from "https://deno.land/x/windmill@v1.35.0/mod.ts"
// https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-api-overview.html#capabilities-api
// Should return an XML document on success.
export async function main(baseUrl: string) {
const resp = await fetch(`${baseUrl}/ocs/v1.php/cloud/capabilities`, {
headers: {
'OCS-APIRequest': 'true',
}
});
if (!resp.ok) {
throw Error(`HTTP Error ${resp.status} - ${await resp.text()}`);
}
return await resp.text();
}
Submitted by jaller94 951 days ago
import * as wmill from "https://deno.land/x/windmill@v1.35.0/mod.ts"
export async function main(baseUrl: string) {
const resp = await fetch(`${baseUrl}/ocs/v1.php/cloud/capabilities`, {
headers: {
'OCS-APIRequest': 'true',
}
});
if (!resp.ok) {
throw Error(`HTTP Error ${resp.status} - ${await resp.text()}`);
}
return await resp.text();
}
Submitted by jaller94 951 days ago
import * as wmill from "https://deno.land/x/windmill@v1.35.0/mod.ts"
export async function main(baseUrl: string) {
const resp = await fetch(`${basicauth_res.baseUrl}/ocs/v1.php/cloud/capabilities`, {
headers: {
'OCS-APIRequest': 'true',
}
});
if (!resp.ok) {
throw Error(`HTTP Error ${resp.status} - ${await resp.text()}`);
}
return await resp.text();
}
Submitted by jaller94 951 days ago