Method: users.spaces.getSpaceReadState
HTTP リクエスト
GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/spaceReadState}
この URL は gRPC Transcoding 構文を使用します。
パスパラメータ
パラメータ |
name |
string
必須。取得するスペースの読み取り状態のリソース名。 呼び出し元のユーザーの読み取り状態の取得のみをサポートしています。 呼び出し元のユーザーを参照するには、次のいずれかを設定します。
me エイリアス。例: users/me/spaces/{space}/spaceReadState
Workspace のメールアドレス。例: users/user@example.com/spaces/{space}/spaceReadState
そのユーザー ID。例: users/123456789/spaces/{space}/spaceReadState
形式: users/{user}/spaces/{space}/spaceReadState
|
リクエスト本文
リクエストの本文は空にする必要があります。
レスポンスの本文
成功した場合、レスポンスの本文には SpaceReadState
のインスタンスが含まれます。
承認スコープ
次の OAuth スコープのいずれかが必要です。
https://www.googleapis.com/auth/chat.users.readstate
https://www.googleapis.com/auth/chat.users.readstate.readonly
詳しくは、承認ガイドをご覧ください。
特に記載のない限り、このページのコンテンツはクリエイティブ・コモンズの表示 4.0 ライセンスにより使用許諾されます。コードサンプルは Apache 2.0 ライセンスにより使用許諾されます。詳しくは、Google Developers サイトのポリシーをご覧ください。Java は Oracle および関連会社の登録商標です。
最終更新日 2024-04-29 UTC。
[null,null,["最終更新日 2024-04-29 UTC。"],[[["This document explains how to retrieve a user's read state within a Google Chat space, indicating read and unread messages."],["You can retrieve read state information for the calling user using their user ID, email address, or the \"me\" alias."],["The request requires specific authorization scopes (`chat.users.readstate` or `chat.users.readstate.readonly`) for access."],["A successful response returns a `SpaceReadState` object containing details of the user's read state in the specified space."],["Refer to the provided links for a practical example and further details on authentication and authorization."]]],[]]