JavaScript
Installation
NPM
Run this command:
npm install comfortable-javascriptFor Usage in Browser
<script type="text/javascript" src="https://cdn.jsdelivr.net/npm/comfortable-javascript@latest/dist/comfortable.min.js"></script>Note: For a specific version replace
@latestwith the version of your choice.
The SDK will be available as a global variable called: Comfortable
Downloadable version
Check out the release Page: https://github.com/cmftable/comfortable-javascript/releases
Include the dependency
const Comfortable = require('comfortable-javascript');Connect to your Repository and make your first request:
const api = Comfortable.api('<repository-api-id>', '<api-key>', options);
api.getDocuments()
.then(result => {
// futher implementation
})
.catch(err => {
throw err;
})list of options can be found here.
Full Query example
Options
Option
Type
Description
Last updated