מידע נוסף על Picker API החדש ועל שינויים חשובים ב-Library API.
כאן יש פרטים.
Method: sessions.delete
קל לארגן דפים בעזרת אוספים
אפשר לשמור ולסווג תוכן על סמך ההעדפות שלך.
מחיקה של הסשן שצוין.
השגיאה NOT_FOUND
מוחזר אם הסשן לא קיים או שהוא לא בבעלות המשתמש.
תגובה ריקה מציינת שהמחיקה בוצעה בהצלחה.
בקשת HTTP
DELETE https://photospicker.googleapis.com/v1/sessions/{sessionId}
כתובת ה-URL משתמשת בתחביר של Transcoding של gRPC.
פרמטרים של נתיב
פרמטרים |
sessionId |
string
חובה. המזהה שנוצר על ידי Google לסשן שרוצים למחוק.
|
גוף הבקשה
גוף הבקשה חייב להיות ריק.
גוף התשובה
אם הפעולה בוצעה ללא שגיאות, גוף התגובה הוא אובייקט JSON ריק.
היקפי הרשאה
נדרש היקף הרשאות OAuth הבא:
https://www.googleapis.com/auth/photospicker.mediaitems.readonly
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2025-03-10 (שעון UTC).
[[["התוכן קל להבנה","easyToUnderstand","thumb-up"],["התוכן עזר לי לפתור בעיה","solvedMyProblem","thumb-up"],["סיבה אחרת","otherUp","thumb-up"]],[["חסרים לי מידע או פרטים","missingTheInformationINeed","thumb-down"],["התוכן מורכב מדי או עם יותר מדי שלבים","tooComplicatedTooManySteps","thumb-down"],["התוכן לא עדכני","outOfDate","thumb-down"],["בעיה בתרגום","translationIssue","thumb-down"],["בעיה בדוגמאות/בקוד","samplesCodeIssue","thumb-down"],["סיבה אחרת","otherDown","thumb-down"]],["עדכון אחרון: 2025-03-10 (שעון UTC)."],[[["Deletes the specified photo session if it exists and is owned by the user."],["Returns a `NOT_FOUND` error if the session doesn't exist or isn't owned by the user, and an empty response upon successful deletion."],["Requires authorization with the `https://www.googleapis.com/auth/photospicker.mediaitems.readonly` scope."],["The request should be a `DELETE` request to `https://photospicker.googleapis.com/v1/sessions/{sessionId}` with an empty body, where `{sessionId}` is the session ID."]]],["The provided content outlines the process for deleting a session via an HTTP `DELETE` request to a specific URL. The `sessionId` is a mandatory path parameter. The request body must be empty. A successful deletion results in an empty response body; a `NOT_FOUND` error indicates the session's absence or incorrect ownership. This operation necessitates the `https://www.googleapis.com/auth/photospicker.mediaitems.readonly` OAuth scope for authorization.\n"]]