מידע נוסף על Picker API החדש ועל שינויים חשובים ב-Library API.
כאן יש פרטים.
Google Photos Picker API
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
הצגת תמונות שבחרתם מספריית Google Photos.
שירות: photospicker.googleapis.com
נקודת קצה (endpoint) של שירות
נקודת קצה של שירות היא כתובת URL בסיסית שצוינה בה כתובת הרשת של שירות API. לשירות אחד יכולות להיות כמה נקודות קצה (endpoint) של שירות. לשירות הזה יש את נקודת הקצה הבאה, וכל מזהי ה-URI שבהמשך הם יחסיים לנקודת הקצה הזו:
https://photospicker.googleapis.com
שיטות |
create |
POST /v1/sessions
יוצר סשן חדש שבו המשתמש יכול לבחור תמונות וסרטונים שיהיו זמינים לצד שלישי. |
delete |
DELETE /v1/sessions/{sessionId}
מחיקת הסשן שצוין. |
get |
GET /v1/sessions/{sessionId}
אחזור מידע על הסשן שצוין. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-07-25 (שעון UTC).
[null,null,["עדכון אחרון: 2025-07-25 (שעון UTC)."],[[["\u003cp\u003eGoogle Photos Picker API allows developers to integrate a feature where users can select photos from their Google Photos library.\u003c/p\u003e\n"],["\u003cp\u003eDevelopers can create, retrieve, and delete sessions for users to pick photos using the \u003ccode\u003ev1.sessions\u003c/code\u003e resource.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003ev1.mediaItems\u003c/code\u003e resource lets developers list the media items selected by a user within a specific session.\u003c/p\u003e\n"],["\u003cp\u003eThe API service endpoint for interacting with Google Photos Picker is \u003ccode\u003ehttps://photospicker.googleapis.com\u003c/code\u003e.\u003c/p\u003e\n"]]],["The core content outlines how to interact with a service for accessing user-selected photos from Google Photos. It allows creation, deletion, and retrieval of sessions for photo selection via `v1.sessions` resource. The `v1.mediaItems` resource provides a method to list the media items (photos and videos) chosen by the user during a session. The service endpoint is `https://photospicker.googleapis.com`, and all related URIs are relative to this endpoint.\n"],null,["# Google Photos Picker API\n\nView photos you select from your Google Photos library.\n\n- [REST Resource: v1.mediaItems](#v1.mediaItems)\n- [REST Resource: v1.sessions](#v1.sessions)\n\nService: photospicker.googleapis.com\n------------------------------------\n\n### Service endpoint\n\nA [service endpoint](https://cloud.google.com/apis/design/glossary#api_service_endpoint) is a base URL that specifies the network address of an API service. One service might have multiple service endpoints. This service has the following service endpoint and all URIs below are relative to this service endpoint:\n\n- `https://photospicker.googleapis.com`\n\nREST Resource: [v1.mediaItems](/photos/picker/reference/rest/v1/mediaItems)\n---------------------------------------------------------------------------\n\n| Methods ||\n|----------------------------------------------------------|-----------------------------------------------------------------------------------------------------|\n| [list](/photos/picker/reference/rest/v1/mediaItems/list) | `GET /v1/mediaItems` Returns a list of media items picked by the user during the specified session. |\n\nREST Resource: [v1.sessions](/photos/picker/reference/rest/v1/sessions)\n-----------------------------------------------------------------------\n\n| Methods ||\n|------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------|\n| [create](/photos/picker/reference/rest/v1/sessions/create) | `POST /v1/sessions` Generates a new session during which the user can pick photos and videos for third-party access. |\n| [delete](/photos/picker/reference/rest/v1/sessions/delete) | `DELETE /v1/sessions/{sessionId}` Deletes the specified session. |\n| [get](/photos/picker/reference/rest/v1/sessions/get) | `GET /v1/sessions/{sessionId}` Retrieves information about the specified session. |"]]