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 (フォーム投稿、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 とパラメーターの形式は不透明と見なす必要があります。