How to upload and create Embed code for Powerpoint to Onedrive using REST API or javascript I am new to Azure can anyone help me to do upload and get embed code for PPT file using REST API or javascript
最佳答案
如果您需要通过 REST API 将 ppt 上传到 OneDrive,您可以使用 List 或使用 PUT 方法来执行此操作,如本线程中所述。 Uploading files to Onedrive using REST API
您还可以使用 Microsoft Graph。 https://learn.microsoft.com/en-us/onedrive/developer/rest-api/api/driveitem_put_content?view=odsp-graph-online
关于嵌入的第二个问题,您应该能够使用 createLink API 来请求嵌入链接。
POST /me/drive/items/{item-id}/createLink
Content-Type: application/json
{
"type": "embed"
}
请参阅documentation了解完整详细信息。
关于javascript - 如何使用 REST API 或 javascript 将 Powerpoint 上传并创建嵌入代码到 Onedrive,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/60467210/