Method: sessions.delete
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
Xoá phiên đã chỉ định.
Lỗi NOT_FOUND
sẽ được trả về nếu phiên không tồn tại hoặc không thuộc quyền sở hữu của người dùng.
Nội dung phản hồi trống cho biết đã xoá thành công.
Yêu cầu HTTP
DELETE https://photospicker.googleapis.com/v1/sessions/{sessionId}
URL sử dụng cú pháp Chuyển mã gRPC.
Tham số đường dẫn
Thông số |
sessionId |
string
Bắt buộc. Giá trị nhận dạng do Google tạo cho phiên cần xoá.
|
Nội dung yêu cầu
Nội dung yêu cầu phải trống.
Nội dung phản hồi
Nếu thành công, nội dung phản hồi sẽ là một đối tượng JSON trống.
Phạm vi uỷ quyền
Yêu cầu phạm vi OAuth sau:
https://www.googleapis.com/auth/photospicker.mediaitems.readonly
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-03-10 UTC.
[[["Dễ hiểu","easyToUnderstand","thumb-up"],["Giúp tôi giải quyết được vấn đề","solvedMyProblem","thumb-up"],["Khác","otherUp","thumb-up"]],[["Thiếu thông tin tôi cần","missingTheInformationINeed","thumb-down"],["Quá phức tạp/quá nhiều bước","tooComplicatedTooManySteps","thumb-down"],["Đã lỗi thời","outOfDate","thumb-down"],["Vấn đề về bản dịch","translationIssue","thumb-down"],["Vấn đề về mẫu/mã","samplesCodeIssue","thumb-down"],["Khác","otherDown","thumb-down"]],["Cập nhật lần gần đây nhất: 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"]]