An unoffical M-Files JavaScript Wrapper with promise support
Install with npm
$ npm i mfilesjs --save
const Mfiles = require('./mfiles-api.js')
const mfiles = new Mfiles({
vault_guid: "MY_VALUT_GUID", // something like {XXXXXXXX-XXXX-XXXX-XXXX-XXXXXXXXXXXXX}
vault_url: "https://…"
});
(async () => {
await mfiles.auth({ username: "MY_USERNAME", password: "MY_PASSWORD" })
let results = await mfiles.search('My document example title');
console.log(results)
});
Check the detailed documentation here: docs.md
Pull requests and stars are always welcome. For bugs and feature requests, please create an issue
mrzmyr
Copyright © 2018 mrzmyr Licensed under the MIT license.