0.1.0 • Published 5 years ago

mfilesjs v0.1.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

mfilesjs

An unoffical M-Files JavaScript Wrapper with promise support

Install

Install with npm

$ npm i mfilesjs --save

Usage

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)
});

Documentation

Check the detailed documentation here: docs.md

Contributing

Pull requests and stars are always welcome. For bugs and feature requests, please create an issue

Author

mrzmyr

License

Copyright © 2018 mrzmyr Licensed under the MIT license.