Enumerar notas

En el siguiente ejemplo, se muestra cómo enumerar notas:


Llama a notes.list().


/** Lists notes using different filtering and pagination options. */
private void listNotes() throws IOException {
  // Lists 3 notes that were created after a specified timestamp and that are not trashed. Results
  // are ordered by most recently modified first.
  ListNotesResponse response =
      .setFilter("create_time > \"2021-01-01T00:00:00Z\"")

  System.out.println("List notes response: " + response);

  // Lists notes using a pagination token.
  ListNotesResponse firstPageResponse = keepService.notes().list().setPageSize(1).execute();
  String nextPageToken = firstPageResponse.getNextPageToken();

  for (int i = 0; i < 5; i++) {
    // Uses the page token that was returned by the previous page's next page token.
    ListNotesResponse pagedResponse =
    System.out.println("Listing note:" + pagedResponse);
    nextPageToken = pagedResponse.getNextPageToken();