Skip to content

Commit e42ca9f

Browse files
committed
updating sample code
1 parent 6d491e5 commit e42ca9f

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

README.md

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,18 +101,17 @@ public class Application {
101101
.filter(HrisListEmployeesQueryParamFilter.builder()
102102
.updatedAfter("2020-01-01T00:00:00.000Z")
103103
.build())
104-
.updatedAfter("2020-01-01T00:00:00.000Z")
105104
.expand("company,employments,work_location,home_location,groups,skills")
106105
.include("avatar_url,avatar,custom_fields,job_description,benefits")
107106
.build();
108107

109108
sdk.hris().listEmployees()
110109
.request(req)
111-
.callAsStream()
112-
.forEach(item -> {
113-
// handle item
114-
});
115-
110+
.call()
111+
.employeesPaginated().get().data()
112+
.forEach(item -> {
113+
// handle item
114+
});
116115
}
117116
}
118117
```

0 commit comments

Comments
 (0)