Skip to content

Commit b15646e

Browse files
committed
docs(readme): update main example (#21)
1 parent c1ccaf2 commit b15646e

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

README.md

+4-5
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,8 @@ finch = Finch(
2525
access_token="my access token",
2626
)
2727

28-
page = finch.hris.directory.list_individuals()
29-
directory = page.individuals[0]
30-
print(directory.ein)
28+
candidate = finch.ats.candidates.retrieve()
29+
print(candidate.first_name)
3130
```
3231

3332
## Async Usage
@@ -43,8 +42,8 @@ finch = AsyncFinch(
4342

4443

4544
async def main():
46-
page = await finch.hris.directory.list_individuals()
47-
print(page.individuals[0].ein)
45+
candidate = await finch.ats.candidates.retrieve()
46+
print(candidate.first_name)
4847

4948

5049
asyncio.run(main())

0 commit comments

Comments
 (0)