Method: users.spaces.threads.getThreadReadState

읽은 메시지와 읽지 않은 메시지를 식별하는 데 사용되는 대화목록 내 사용자의 읽기 상태에 관한 세부정보를 반환합니다. 예를 보려면 사용자의 대화목록 읽기 상태에 관한 세부정보 가져오기를 참고하세요.

다음 승인 범위 중 하나를 사용하여 사용자 인증이 필요합니다.

  • https://www.googleapis.com/auth/chat.users.readstate.readonly
  • https://www.googleapis.com/auth/chat.users.readstate

HTTP 요청

GET https://chat.googleapis.com/v1/{name=users/*/spaces/*/threads/*/threadReadState}

URL은 gRPC 트랜스코딩 문법을 사용합니다.

경로 매개변수

매개변수
name

string

필수 항목입니다. 검색할 스레드 읽기 상태의 리소스 이름입니다.

호출하는 사용자의 읽기 상태만 가져옵니다.

호출 사용자를 참조하려면 다음 중 하나를 설정합니다.

  • me 별칭입니다. 예를 들면 다음과 같습니다. users/me/spaces/{space}/threads/{thread}/threadReadState

  • Workspace 이메일 주소 예를 들면 users/[email protected]/spaces/{space}/threads/{thread}/threadReadState입니다.

  • 사용자 ID입니다. 예를 들면 users/123456789/spaces/{space}/threads/{thread}/threadReadState입니다.

형식: users/{user}/spaces/{space}/threads/{thread}/threadReadState

요청 본문

요청 본문은 비어 있어야 합니다.

응답 본문

성공한 경우 응답 본문에 ThreadReadState의 인스턴스가 포함됩니다.

승인 범위

다음 OAuth 범위 중 하나가 필요합니다.

  • https://www.googleapis.com/auth/chat.users.readstate
  • https://www.googleapis.com/auth/chat.users.readstate.readonly

자세한 내용은 승인 가이드를 참고하세요.