ดูข้อมูลเกี่ยวกับ Picker API ใหม่และการเปลี่ยนแปลงที่สำคัญของ Library API
ดูรายละเอียดที่นี่
Method: sessions.delete
จัดทุกอย่างให้เป็นระเบียบอยู่เสมอด้วยคอลเล็กชัน
บันทึกและจัดหมวดหมู่เนื้อหาตามค่ากำหนดของคุณ
ลบเซสชันที่ระบุ
ระบบจะแสดงข้อผิดพลาด NOT_FOUND
หากไม่มีเซสชันหรือผู้ใช้ไม่ได้เป็นเจ้าของเซสชัน
หากการแสดงผลเป็นเซลล์ว่าง นั่นแสดงว่าลบสำเร็จ
คำขอ HTTP
DELETE https://photospicker.googleapis.com/v1/sessions/{sessionId}
URL ใช้ไวยากรณ์การแปลง gRPC
พารามิเตอร์เส้นทาง
พารามิเตอร์ |
sessionId |
string
ต้องระบุ ตัวระบุที่ Google สร้างขึ้นสำหรับเซสชันที่จะลบ
|
เนื้อหาของคำขอ
เนื้อหาของคำขอต้องว่างเปล่า
เนื้อหาการตอบกลับ
หากทำสำเร็จ เนื้อหาการตอบกลับจะเป็นออบเจ็กต์ JSON ว่าง
ขอบเขตการให้สิทธิ์
ต้องใช้ขอบเขต OAuth ต่อไปนี้
https://www.googleapis.com/auth/photospicker.mediaitems.readonly
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 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"]]