使用 Microsoft Graph api 的 onedrive 文件的结帐状态
checkout status of a onedrive file using microsoft graph api
我正在尝试使用 microsoft-graph 检查是否已检出一个 onedrive 文件。根据文档 https://docs.microsoft.com/en-us/onedrive/developer/rest-api/resources/driveitem ,有一个 DriveItem 的出版物 属性。但是这个属性默认是不返回的。但是文档没有提到如何检索这个 属性.
我建议您查看 Use query parameters to customize responses 文档页面。您可以使用 $select
选择在 API 响应中返回哪些属性。
我相信您的查询类似于:
GET https://graph.microsoft.com/v1.0/me/drive/items/{ITEM ID}?$select=publication
的模拟账户在 Graph 浏览器中尝试此查询
我正在尝试使用 microsoft-graph 检查是否已检出一个 onedrive 文件。根据文档 https://docs.microsoft.com/en-us/onedrive/developer/rest-api/resources/driveitem ,有一个 DriveItem 的出版物 属性。但是这个属性默认是不返回的。但是文档没有提到如何检索这个 属性.
我建议您查看 Use query parameters to customize responses 文档页面。您可以使用 $select
选择在 API 响应中返回哪些属性。
我相信您的查询类似于:
GET https://graph.microsoft.com/v1.0/me/drive/items/{ITEM ID}?$select=publication