因此,基本上对我的sharepoint的身份验证是成功的,但是Pandas无法读取xlsx文件(该文件存储为byte对象)。我得到错误:"ValueError:文件不是一个可识别的excel文件“from office365.runtime.auth.authentication_context import AuthenticationContextimport pandas as pd
#target url taken from sharepoint and credentia
我有一个场景,userA在OneDrive for Business上与userB共享文件。它们都属于同一个Office365租户。有没有一种方法可以使用userB身份(OAuth访问令牌)以编程方式检索共享文件内容?我尝试过使用2.0APISyntaxt,它适用于userA,但是当我尝试使用userB访问令牌来执行这个请求时,我得到了401错误,即使文件是与userB共享的。https://{tenantid}-my.sharepoint.com/_api/v2.