TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Cong Pham
NA
12
662
Node js Unable to connect Pointshare Please help me !!
Jan 12 2021 9:21 AM
I using Code :
node-sp-auth &
request-promise
var
url =
'https://myproject.sharepoint.com/personal/name'
;
var
username =
"
[email protected]
"
;
var
password =
"********"
;
spauth.getAuth(url, {
username:username,
password:password
})
.then(
function
(options){
// Access Token will be available on the options.headers variable
var
listTitler=
"OPProductionTrackingOnline"
;
console.log(listTitle)
var
headers = options.headers;
headers[
'Accept'
] =
'application/json;odata=verbose'
;
// Pull the SharePoint list items
requestprom.get({
url: url+
"/_api/web/lists/getbytitle('"
+listTitler+
"')"
,
headers: headers,
json:
true
}).then(
function
(listresponse){
var
items = listresponse.d.Title;
var
responseJSON = [];
console.log(JSON.stringify(listresponse))
// response.end(JSON.stringify(listresponse));
});
Reply
Answers (
1
)
I am not able to access my website without appending the port number.
Calling stored procedure from node js