Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.mdns.eu/nextcloud/passwords-client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarius David Wieschollek <passwords.public@mdns.eu>2019-06-06 22:54:48 +0300
committerMarius David Wieschollek <passwords.public@mdns.eu>2019-06-06 22:54:48 +0300
commit542423aa2f35bccc8af02c39081acecaf0e427ba (patch)
tree2d982169065a98b59a7f2193b80b497a190a3b91 /Readme.md
Initial commit
Diffstat (limited to 'Readme.md')
-rw-r--r--Readme.md39
1 files changed, 39 insertions, 0 deletions
diff --git a/Readme.md b/Readme.md
new file mode 100644
index 0000000..9394175
--- /dev/null
+++ b/Readme.md
@@ -0,0 +1,39 @@
+This library contains a JavaScript client for the [Passwords app for Nextcloud](https://apps.nextcloud.com/apps/passwords)
+Cou can find the API documentation [here](https://git.mdns.eu/nextcloud/passwords/wikis/developers/index)
+
+### Using the client
+You can use the enhanced version of the client in your project like this:
+```javascript
+import EnhancedApi from 'passwords-client';
+
+let api = new EnhancedApi();
+api.initialize({baseUrl:'https://cloud.example.com', user:'user', password:'password'});
+```
+
+#### Using the simple api
+There is a "slim" version of the api.
+This version will just communicate with the api but does no processing or encryption of the objects.
+
+```javascript
+import EventEmitter from 'eventemitter3';
+import {SimpleApi} from 'passwords-client';
+
+let events = new EventEmitter(),
+ api = new SimpleApi();
+
+api.initialize({apiUrl:'https://cloud.example.com/index.php/apps/passwords/', user:'user', password:'password', events});
+```
+
+
+### Development
+You cah use a development version in your project with the following commands
+
+```bash
+# Go into library folder
+cd passwords-client
+sudo npm link
+
+# Go into project folder
+cd ../project
+npm link passwords-client
+``` \ No newline at end of file