您正在查看 Google Photos Library API 的旧版文档。
Method: mediaItems.get
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2024-11-07。
[null,null,["最后更新时间 (UTC):2024-11-07。"],[[["This endpoint retrieves a specific media item using its unique identifier."],["The request is made using an HTTP GET request to the specified URL with the `mediaItemId` as a path parameter."],["An empty request body is required, and a successful response returns a `MediaItem` object."],["Authorization is necessary using one of the listed OAuth scopes related to Google Photos Library access."]]],["Retrieves a specific media item using its identifier. The request is a `GET` to the provided URL, `https://photoslibrary.googleapis.com/v1/mediaItems/{mediaItemId}`, with the `mediaItemId` parameter being mandatory. The request body must be empty. A successful response contains a `MediaItem` instance. Access requires one of the listed OAuth authorization scopes: `photoslibrary`, `photoslibrary.readonly`, or `photoslibrary.readonly.appcreateddata`.\n"]]