발신자가 참여 중인 스페이스의 메시지(차단된 회원 및 스페이스의 메시지 포함)를 표시합니다. 메시지가 없는 스페이스의 메시지를 나열하면 응답은 빈 객체입니다. REST/HTTP 인터페이스를 사용하는 경우 응답에 빈 JSON 객체 {}가 포함됩니다. 예는 메시지 목록을 참고하세요.
선택사항입니다. 반환되는 최대 메시지 수입니다. 서비스가 이 값보다 적은 메시지를 반환할 수 있습니다.
지정하지 않으면 최대 25개가 반환됩니다.
최대 값은 1,000입니다. 1,000을 초과하는 값을 사용하면 1,000으로 자동 변경됩니다.
음수 값은 INVALID_ARGUMENT 오류를 반환합니다.
pageToken
string
선택사항입니다. 이전 list messages 호출에서 수신된 페이지 토큰입니다. 후속 페이지를 가져오려면 이 매개변수를 제공합니다.
페이지로 나누는 경우, 제공하는 다른 모든 매개변수가 페이지 토큰을 제공한 호출과 일치해야 합니다. 다른 매개변수에 다른 값을 전달하면 예기치 않은 결과가 발생할 수 있습니다.
filter
string
선택사항입니다. 쿼리 필터입니다.
날짜 (createTime) 및 대화목록 (thread.name)별로 메시지를 필터링할 수 있습니다.
생성 날짜별로 메시지를 필터링하려면 RFC-3339 형식의 타임스탬프와 따옴표로 묶은 createTime를 지정합니다. 예를 들면 "2023-04-21T11:30:00-04:00"입니다. 보다 큰 연산자 >를 사용하여 타임스탬프 이후에 생성된 메시지를 나열하거나 보다 작은 연산자 <를 사용하여 타임스탬프 이전에 생성된 메시지를 나열할 수 있습니다. 시간 간격 내의 메시지를 필터링하려면 두 타임스탬프 사이에 AND 연산자를 사용합니다.
대화목록별로 필터링하려면 thread.name를 지정하고 형식을 spaces/{space}/threads/{thread}로 지정합니다. 쿼리당 thread.name 하나만 지정할 수 있습니다.
대화목록과 날짜를 모두 기준으로 필터링하려면 쿼리에서 AND 연산자를 사용하세요.
예를 들어 다음 쿼리는 유효합니다.
createTime > "2012-04-21T11:30:00-04:00"
createTime > "2012-04-21T11:30:00-04:00" AND
thread.name = spaces/AAAAAAAAAAA/threads/123
createTime > "2012-04-21T11:30:00+00:00" AND
createTime < "2013-01-01T00:00:00+00:00" AND
thread.name = spaces/AAAAAAAAAAA/threads/123
thread.name = spaces/AAAAAAAAAAA/threads/123
잘못된 쿼리는 서버에서 INVALID_ARGUMENT 오류와 함께 거부됩니다.
orderBy
string
선택사항입니다. 메시지 목록의 순서입니다. 정렬 작업에 따라 정렬할 값을 지정합니다. 유효한 순서 지정 작업 값은 다음과 같습니다.
오름차순의 경우 ASC
내림차순의 경우 DESC
기본 순서는 createTime ASC입니다.
showDeleted
boolean
선택사항입니다. 삭제된 메시지를 포함할지 여부입니다. 삭제된 메일에는 삭제 시간과 삭제에 관한 메타데이터가 포함되지만 메시지 콘텐츠는 사용할 수 없습니다.
[[["이해하기 쉬움","easyToUnderstand","thumb-up"],["문제가 해결됨","solvedMyProblem","thumb-up"],["기타","otherUp","thumb-up"]],[["필요한 정보가 없음","missingTheInformationINeed","thumb-down"],["너무 복잡함/단계 수가 너무 많음","tooComplicatedTooManySteps","thumb-down"],["오래됨","outOfDate","thumb-down"],["번역 문제","translationIssue","thumb-down"],["샘플/코드 문제","samplesCodeIssue","thumb-down"],["기타","otherDown","thumb-down"]],["최종 업데이트: 2025-05-07(UTC)"],[[["Lists messages in a Google Chat space, including those from blocked members and spaces, with pagination support."],["Allows filtering messages by creation date, thread, and whether they are deleted, with customizable ordering."],["Requires authorization with specific scopes for accessing and managing chat messages."],["Provides an HTTP request structure and details on path and query parameters for interacting with the API."],["The response body contains a list of messages and a token for retrieving subsequent pages, if available."]]],["This API endpoint lists messages within a specified space. It uses a `GET` request with the space's resource name in the path. Optional query parameters include `pageSize`, `pageToken`, `filter` (for filtering by creation date or thread), `orderBy` (for sorting), and `showDeleted`. The request body is empty. The response includes a list of messages and a `nextPageToken` for pagination. Authentication requires specific OAuth scopes.\n"]]