itemPreviewInfo 资源类型
命名空间:microsoft.graph
包含有关如何嵌入 driveItem 预览的信息。
JSON 表示形式
{
"getUrl": "https://www.onedrive.com/embed?foo=bar&bar=baz",
"postParameters": "param1=value¶m2=another%20value",
"postUrl": "https://www.onedrive.com/embed_by_post"
}
属性
名称 | 类型 | 说明 |
---|---|---|
getUrl | string | 适用于使用 HTTP GET (iframe 等嵌入的 URL ) |
postParameters | string | 使用 postUrl 时要包括的 POST 参数 |
postUrl | string | 适合使用 HTTP POST (表单 post、JS 等嵌入的 URL ) |
根据对指定选项的支持的当前状态,可能会返回 getUrl 和/或 postUrl。
postParameters 是格式为 的 application/x-www-form-urlencoded
字符串,如果对 postUrl 执行 POST,则应相应地设置内容类型。 例如:
POST https://www.onedrive.com/embed_by_post
Content-Type: application/x-www-form-urlencoded
param1=value¶m2=another%20value
URL 和参数的格式应被视为不透明。
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈