要知道Sharepoint Online中文件的结帐状态,我尝试使用API 获取发布状态。如果发布但未签出,则可以签出。
但是,如果其他用户结帐,我会得到一如既往的状态。如果我调用checkout API,则会出现如下错误。
我该怎么处理?
GET sites/xxxx.sharepoint.com,061c7752-21f1-41f0-a191-2a95ce5ac993,33b3171e-f502-4328-8036-f5e3f7195261/drives/b!UnccBvEh8EGhkSqVzlrJkx4XszMC9ShDgDb14_cZUmECXfX0WrHmRojtsnP2Y3fz/items/012CTZSL2WNHPNJDHZU5AJIVHVZ2KBD7YD?select=publication
publication":{"level":"published","versionId":"1.0"}
结帐
POST
/drives/b!UnccBvEh8EGhkSqVzlrJkx4XszMC9ShDgDb14_cZUmECXfX0WrHmRojtsnP2Y3fz/items/012CTZSL2WNHPNJDHZU5AJIVHVZ2KBD7YD/checkout
错误
checkOut:Response{
"error": {
"code": "-1, Microsoft.SharePoint.Client.UnknownError",
"message": "Unknown Error",
"innerError": {
"request-id": "8ebe0c52-f186-4245-a52b-340590dd1f15",
"date": "2019-06-11T13:12:51"
}
}
}