Method: mediaItems.get
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2025-01-30 (世界標準時間)。
[null,null,["上次更新時間:2025-01-30 (世界標準時間)。"],[[["This method retrieves a specific media item using its unique identifier (`mediaItemId`)."],["The request must be authorized using one of the specified OAuth scopes, granting access to the user's photo library."],["Functionality will be limited to media items created by your app starting March 31, 2025, as some authorization scopes are being changed (see Photos APIs updates for details)."],["The response provides a detailed representation of the requested media item, including its properties and metadata."],["No request body is required; simply provide the `mediaItemId` as a path parameter in the GET request URL."]]],["The core content describes how to retrieve a media item using its identifier. A `GET` request is sent to `https://photoslibrary.googleapis.com/v1/mediaItems/{mediaItemId}`, with `mediaItemId` as a required path parameter. The request body must be empty. A successful response returns a `MediaItem`. Access requires one of three specified OAuth scopes. Functionality will change on March 31, 2025, limiting interaction to media items created by the app.\n"]]