GithubHelp home page GithubHelp logo

lstak / node-sharepoint Goto Github PK

View Code? Open in Web Editor NEW
104.0 104.0 41.0 122 KB

Connecting Node and SharePoint

Home Page: http://allthatjs.com/2012/03/29/node-js-meet-sharepoint/

JavaScript 100.00%

node-sharepoint's People

Contributors

lstak avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

node-sharepoint's Issues

THIS CODE HAS BEEN ABANDONED

It no longer works with current versions of SP, no point in trying unless you have the skills to fix the code.

There is a fork being developed by Class-Solutions that seems the best hope but it doesn't yet work.

Usage with Sharepoint Server 2010

Hi

I want to access list data from a sharepoint server. Is it available? I am not getting any data or error ins the callback method, what can I do?

Thanks

Using https

While using SharePoint with https the module fails. The reason is that it uses the http module always regardless if you pass a url with https.

xml2js 0.2 incompatibility

xml2js 0.2 was published to the NPM repository about three weeks ago.

It seems to break node-sharepoint.

By setting the XML parser defaults back to 0.1 as described in the xml2js README file, the code beginning around line 115 in sharepoint.js will not fail. It does fail using the current defaults.

It looks like there was some delay between the GitHub repository of xml2js being updated and the change being published to the NPM repository.

cant sign in to site

wen trying to sign in to my share point site it is throwing following error

if (js['S:Body']['S:Fault']) {
^
TypeError: Cannot read property 'S:Fault' of undefined
at E:\My Examples\nodetestsamples\samplechat2\node_modules\sharepoint\sharep
oint.js:114:33
at Parser. (E:\My Examples\nodetestsamples\samplechat2\node_modul
es\sharepoint\sharepoint.js:27:21)
at Parser.EventEmitter.emit (events.js:95:17)
at Object.saxParser.onclosetag (E:\My Examples\nodetestsamples\samplechat2\n
ode_modules\sharepoint\node_modules\xml2js\lib\xml2js.js:225:24)
at emit (E:\My Examples\nodetestsamples\samplechat2\node_modules\sharepoint
node_modules\xml2js\node_modules\sax\lib\sax.js:589:33)
at emitNode (E:\My Examples\nodetestsamples\samplechat2\node_modules\sharepo
int\node_modules\xml2js\node_modules\sax\lib\sax.js:594:3)
at closeTag (E:\My Examples\nodetestsamples\samplechat2\node_modules\sharepo
int\node_modules\xml2js\node_modules\sax\lib\sax.js:834:5)
at Object.write (E:\My Examples\nodetestsamples\samplechat2\node_modules\sha
repoint\node_modules\xml2js\node_modules\sax\lib\sax.js:1253:29)
at Parser.exports.Parser.Parser.parseString (E:\My Examples\nodetestsamples
samplechat2\node_modules\sharepoint\node_modules\xml2js\lib\xml2js.js:264:29)
at Parser.parseString (E:\My Examples\nodetestsamples\samplechat2\node_modul
es\sharepoint\node_modules\xml2js\lib\xml2js.js:77:45)

I am using the following code to login

var SP = require('sharepoint'),
site = 'http://vsp113:11291/sites/ChatroomSite',
username = 'domainname\username',
password = 'password',
spclient = new SP.RestService(site);

spclient.signin(username, password, function (err,data) {

// At this point, authentication is complete,
// so we can do requests.    
if(err)
{
console.log('error occourec : '+err);
}

console.log('sharepoint login completed sucessfull');
});

it is not even entering the if (err) block

I can't get this to auth against my sharepoint

Wiresharked the URL the .js is sending,... it's the right URL. When I put that URL in a browser I can log in and it works.

Can you recommend a tool that will help me debug the SAML challenge and response? I can't seem to find out where my auth is going wrong.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.