/passwords-client

JS client for api of the passwords app for nextcloud

Primary LanguageJavaScript

This is as WIP! Expect changes.

This package contains a JavaScript client for the Passwords app for Nextcloud

You can find the API documentation here

Using the client

You can use the enhanced version of the client in your project like this:

import PasswordsClient from 'passwords-client';

let client = new PasswordsClient({baseUrl:'https://cloud.example.com/', user:'user', token:'12345-12345-12345-12345-12345'});
let passwordsRepository = client.getPasswordRepository();
let passwordCollection = await passwordsRepository.findAll();

Development

You cah use a development version in your project with the following commands

# Go into library folder
cd passwords-client
sudo npm link

# Go into project folder
cd ../project
npm link passwords-client