@quantr/quantr-js-library
v1.0.1
Published
Calling SharePoint in pure Javascript, no need typescript, best to use in ElectronJS
Downloads
3
Keywords
Readme
Quantr JS Library
Calling SharePoint in pure Javascript, no need typescript, best to use in ElectronJS
publish to npmjs
npm publish --access public
example
var QuantrSP = require('@quantr/quantr-js-library');
var domain = "quantr.sharepoint.com";
var site = "test";
var docLib = "doclib1";
var username = "[email protected]";
var password = "password";
var quantrSP = new QuantrSP(username, password, domain);
quantrSP.login().then(function (token) {
console.log(token.rtFa);
console.log(token.FedAuth);
quantrSP.get(token, '/_api/web/webs').then(function (json) {
console.log(json);
});
});
console.log('end');