maxResults 필드를 설정하여 서버가 목록 요청에 대한 응답으로 반환하는 최대 리소스 수를 제어할 수 있습니다. 또한 일부 컬렉션 (예: 이벤트)의 경우 서버가 절대 초과하지 않는 검색된 항목 수에 엄격한 제한이 있습니다. 총 이벤트 수가 이 최대값을 초과하면 서버는 결과 페이지 1개를 반환합니다.
maxResults는 페이지당 결과 수를 보장하지 않습니다.
불완전한 결과는 결과에서 nextPageToken 필드가 비어 있지 않으면 감지할 수 있습니다. 다음 페이지를 검색하려면 이전과 똑같은 요청을 실행하고 이전 페이지의 nextPageToken 값이 있는 pageToken 필드를 추가합니다. 모든 결과가 검색될 때까지 다음 페이지에 새 nextPageToken가 제공됩니다.
예를 들어 다음은 페이지로 나눈 목록에서 결과의 다음 페이지를 검색하는 쿼리입니다.
GET /calendars/primary/events?maxResults=10&singleEvents=true
//Result contains
"nextPageToken":"CiAKGjBpNDd2Nmp2Zml2cXRwYjBpOXA",
후속 쿼리는 nextPageToken의 값을 가져와 pageToken의 값으로 제출합니다.
GET /calendars/primary/events?maxResults=10&singleEvents=true&pageToken=CiAKGjBpNDd2Nmp2Zml2cXRwYjBpOXA
[[["이해하기 쉬움","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"]],["최종 업데이트: 2024-12-21(UTC)"],[[["Control the maximum number of resources returned in a list request by setting the `maxResults` field, with some collections having hard limits on retrievable entries."],["Detect incomplete results by checking for a non-empty `nextPageToken` field, which indicates the presence of additional pages."],["Retrieve the next page of results by performing the same request and appending a `pageToken` field with the `nextPageToken` value from the previous page."],["The server provides new `nextPageToken` values on subsequent pages until all results are retrieved, enabling complete data retrieval through pagination."]]],[]]