Provides an easy way to work with the SharePoint 2013 REST API from node. Only works with on-premise SharePoint 2013 environments with sites that are configured to allow basic authentication.
Every operation returns a promise. The list operations can have a properties array passed in to only return those properties needed. If no properties array is passed in then a default list is used. Please refer to the link below for a list of valid properties:
http://msdn.microsoft.com/en-us/library/office/dn531433(v=office.15).aspx
These properties are CaSe SeNsItIvE.
I am currently rewriting the examples piece to show a more robust usage, but for now there are 3 examples, getAllLists, getListInfo, and getListItems. To run the examples:
- Clone or download the zip
- Extract
- Run npm install
- Modify the config.js to reflect your settings
- Run node server
- Browse to http://localhost:3000
There are some more examples in the examples.js, but they are not really polished as of right now.
More to come. Please file an issue if you have any questions.