验证码:
const context = {
siteUrl: 'https://<tenant>.sharepoint.com',
creds: {
username: "<username>@<tenant>.onmicrosoft.com",
password: "***",
online: true
}
};
const options2 = {
spRootFolder: "Shared%20Documents/docverify",
dlRootFolder: "./docverify"
};
SPPull.download(context, options2)
.then((downloadResults) => {
console.log("Files are downloaded", downloadResults);
console.log("For more, please check the results", JSON.stringify(downloadResults));
})
.catch((err) => {
console.log("Core error has happened", err);
});
输出:
Files are downloaded []
For more please check the results []
SharePoint enter image description here中文件的附加屏幕截图
要下载的文件
1条答案
按热度按时间t2a7ltrp1#
请将“%20”更改为“\”
密码:
我的代码:
它对我有作用。