@samuelspagl/nc-api-client
Version:
A simple API client for Nextcloud Apps.
21 lines (17 loc) • 618 B
JavaScript
const authClient = require('./shared/nc-api-client.GqU669Dm.cjs');
require('ofetch');
class NextcloudClient {
deck;
bookmark;
notes;
general;
constructor(baseUrl, username, password) {
this.deck = new authClient.DeckClient(baseUrl, username, password);
this.bookmark = new authClient.BookmarkClient(baseUrl, username, password);
this.notes = new authClient.NotesClient(baseUrl, username, password);
this.general = new authClient.GeneralClient(baseUrl, username, password);
}
}
exports.NextcloudAuthClient = authClient.AuthClient;
exports.NextcloudClient = NextcloudClient;
;