使用sharepy python连接到sharepoint时出现问题

2024-10-03 15:30:02 发布

您现在位置:Python中文网/ 问答频道 /正文

我正在使用的代码

import sharepy
    from sharepy import connect
    from sharepy import SharePointSession 

    server="https://company.sharepoint.com"
    user="user@company.com" // username
    password="passcode" //passcode

    s = sharepy.connect(server,user,password)

error : Authentication Failure: AADSTS50126: Error validating credentials due to invalid username or password


Tags: 代码fromhttpsimportcomserverconnectusername