(
source code)
Permits to use credentials when doing requests (for Node module only)
Returns:
Object
the current SharepointPlus object
Example:
var user1 = {username:'aymeric', password:'sharepointplus', domain:'kodono'};
$SP().auth(user1)
.list("My List","http://my.sharpoi.nt/other.directory/")
.get({...});
// or :
var sp = $SP().auth(user1);
sp.list("My List", "https://web.si.te").get({...});
sp.list("Other List"; "http://my.sharpoi.nt/other.directory/").update(...);
(
source code)
Permits to define a proxy server (for Node module only)
Returns:
Object
the current SharepointPlus object
Example:
var user1 = {username:'aymeric', password:'sharepointplus', domain:'kodono'};
var proxy = "http://" + user1.domain + "%5C" + user1.username + ":" + user1.password + "@proxy:80";
$SP().proxy(proxy).auth(user1)
.list("My List","http://my.sharpoi.nt/other.directory/")
.get({...});
// or :
var sp = $SP().proxy(proxy).auth(user1);
sp.list("My List", "https://web.si.te").get({...});
sp.list("Other List"; "http://my.sharpoi.nt/other.directory/").update(...);