Anda sedang melihat dokumentasi lama untuk Google Photos Library API.
Method: mediaItems.get
Kecuali dinyatakan lain, konten di halaman ini dilisensikan berdasarkan Lisensi Creative Commons Attribution 4.0, sedangkan contoh kode dilisensikan berdasarkan Lisensi Apache 2.0. Untuk mengetahui informasi selengkapnya, lihat Kebijakan Situs Google Developers. Java adalah merek dagang terdaftar dari Oracle dan/atau afiliasinya.
Terakhir diperbarui pada 2024-11-07 UTC.
[null,null,["Terakhir diperbarui pada 2024-11-07 UTC."],[[["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"]]