This repository was archived by the owner on Jan 18, 2021. It is now read-only.
This repository was archived by the owner on Jan 18, 2021. It is now read-only.
site url cannot be called in user() method after introduction of "sprLib.baseUrl()" #31
Closed
Description
Hello,
in issue# 8 (#8) we discussed to add the site url to the user methods, and It work at that time but it seems this is no long working after you introduced the "sprLib.baseUrl()"
error from console:
Warning: Check your options! Available user()
options are: id
,email
,login
,title
var siteUrl = 'https://xxx.sharepoint.com/teams/xxx'
sprLib.user({
baseUrl: siteUrl
}).info().then(function (objUser) {
console.log(objUser)
});
however this is working
sprLib.baseUrl('https://xxx.sharepoint.com/teams/xxxx');
sprLib.user().info().then(function (objUser) {
console.log(objUser)
});