新しい Picker API と Library API の重要な変更点について説明します。詳しくは、
こちらをご覧ください。
Method: sessions.delete
指定されたセッションを削除します。
セッションが存在しない場合、またはユーザーが所有していない場合、NOT_FOUND
エラーが返されます。
空のレスポンスは、削除が成功したことを示します。
HTTP リクエスト
DELETE https://photospicker.googleapis.com/v1/sessions/{sessionId}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
sessionId |
string
必須。削除するセッションの Google 生成 ID。
|
リクエストの本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功すると、レスポンスの本文は空の JSON オブジェクトになります。
認可スコープ
次の OAuth スコープが必要です。
https://www.googleapis.com/auth/photospicker.mediaitems.readonly
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2025-03-10 UTC。
[null,null,["最終更新日 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"]]