go-sp
v0.9.0
Published
$go is a lightweight SharePoint AJAX library that makes REST calls extremely simple
Downloads
3
Readme
$go Library for SharePoint
$go is a complete rewite of the $go library. Since this was a major rewrite I am treating this as a new library.
$go is a lightweight SharePoint AJAX library that makes REST calls extremely simple. This library was designed to give developers of any skill level an easy to use tool that simply works. Most GET requests can be completed by simply providing a URL. Each call returns a promise that allows chaining of callbacks. See examples below.
$go.get('<REST ENDPOINT>?<ODATA OPERATORS>')
.done(function(data){
// Logic goes here
})
.fail(function(e){
// Fail logic goes here
});
// or using a built-in method you could do this
$go.getCurrentSite()
.done(function(data){
// Logic goes here
})
.fail(function(e){
// Fail logic goes here
});
The beauty of this library is in it's simplicity. No more memorizing headers or other metdata, simply provide a url and get data back. Need to save something to a list? Provide $go a url and pass in the properly formatted data object and...done. Try it out!!
Installation
Super easy stuff. Use npm or yarn.
npm install go-sp
or
yarn add go-sp
Or... Traditional Download, cuz that's cool too.
Production
- Copy goSp.js from the /dist folder.
- Add reference to goSp.js to desired page (Adding to Master Page is recommended)
- Go nuts!
Development
- Copy goSp.js from the /src folder.
- Add reference to goSp.js to desired page (Adding to Master Page is recommended)
- Go nuts!
Documentation
See the full documentation here.
Licenses
$go License
Copyright (c) 2016 Marc Santiago Garza Released under the MIT License. See license here.
jQuery License
This project uses parts of the jQuery library at its core. I only use jQuery as a dependency, and in no way take credit for any of jQuery's work.
Copyright jQuery Foundation and other contributors Released under the MIT license https://jquery.org/license