itemPreviewInfo 资源类型

命名空间:microsoft.graph

包含有关如何嵌入 driveItem 预览的信息。

JSON 表示形式

{
    "getUrl": "https://www.onedrive.com/embed?foo=bar&bar=baz",
    "postParameters": "param1=value&param2=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&param2=another%20value

URL 和参数的格式应被视为不透明。