Method: sessions.get
Belirtilen oturumla ilgili bilgileri alır.
Belirtilen oturum yoksa veya kullanıcıya ait değilse NOT_FOUND
hatası döndürülür. Oturum mevcutsa ancak oturuma erişim süresi sona erdiyse PERMISSION_DENIED
hatası döndürülür.
HTTP isteği
GET https://photospicker.googleapis.com/v1/sessions/{sessionId}
URL, gRPC Kod Dönüştürme söz dizimini kullanır.
Yol parametreleri
Parametreler |
sessionId |
string
Zorunlu. Bu oturum için Google tarafından oluşturulan tanımlayıcı.
|
İstek içeriği
İstek metni boş olmalıdır.
Yanıt metni
Başarılıysa yanıt metni, PickingSession
öğesinin bir örneğini içerir.
Yetkilendirme kapsamları
Aşağıdaki OAuth kapsamını gerektirir:
https://www.googleapis.com/auth/photospicker.mediaitems.readonly
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-09-12 UTC.
[null,null,["Son güncelleme tarihi: 2024-09-12 UTC."],[[["Retrieves details about a specific photo picking session using its unique identifier."],["Returns a `NOT_FOUND` error if the session doesn't exist or isn't owned by the user, and a `PERMISSION_DENIED` error if access has expired."],["Requires authorization with the `https://www.googleapis.com/auth/photospicker.mediaitems.readonly` scope for accessing session information."],["Provides the session details in the response body if the request is successful."]]],["This document outlines the process of retrieving session information via a `GET` request to `https://photospicker.googleapis.com/v1/sessions/{sessionId}`. The `sessionId`, a required string, is provided as a path parameter. The request body must be empty. A successful response returns a `PickingSession` instance, otherwise `NOT_FOUND` or `PERMISSION_DENIED` error. Access requires the `https://www.googleapis.com/auth/photospicker.mediaitems.readonly` OAuth scope. The URL follows gRPC Transcoding syntax.\n"]]