Method: users.spaces.threads.getThreadReadState

읽은 메일과 읽지 않은 메일을 식별하는 데 사용되며 대화목록 내 사용자의 읽음 상태에 대한 세부정보를 반환합니다.

사용자 인증이 필요합니다.

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/user@example.com/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

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