Nonstop Progressive Marxism
    Have ideas to improve npm?Join in the discussion! »

    @quantr/quantr-js-library

    1.0.1 • Public • Published

    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 = "peter@quantr.hk";
    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');
    

    Keywords

    Install

    npm i @quantr/quantr-js-library

    DownloadsWeekly Downloads

    1

    Version

    1.0.1

    License

    LGPL-3.0-or-later

    Unpacked Size

    7.09 kB

    Total Files

    3

    Last publish

    Collaborators

    • avatar
    • avatar