We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi, I am trying to upload a file to sharepoint folder. But, NOT able to authenticate. I am getting below error.
throw new Error(Unable to resolve namespace authentiation type. Type received: ${authType});
throw new Error(
);
Please help.
My Code is as below,
var spauth = require('node-sp-auth'); var request = require('request-promise'); var $REST = require("gd-sprest"); // Log console.log("Connecting to SPO"); // Connect to //https://someurl.sharepoint.com/sites/someteams var url = "https://someurl.sharepoint.com/sites/someteams/_api/web/lists"; spauth.getAuth(url, { username: "username",//"email or username", ? password: "password", online: true }).then(options => { // Log console.log("Connected to SPO"); let headers = options.headers; headers['Accept'] = 'application/json;odata=verbose'; request.get({ url: `https://someurl.sharepoint.com/sites/someteams/_api/web`, headers: headers }).then(response => { //process data }); // Code Continues in 'Generate the Request' });
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Hi, I am trying to upload a file to sharepoint folder. But, NOT able to authenticate. I am getting below error.
throw new Error(
Unable to resolve namespace authentiation type. Type received: ${authType});
Please help.
My Code is as below,
The text was updated successfully, but these errors were encountered: