Skip to content

Commit 3d68378

Browse files
authored
docs: fix client_run example (#236)
1 parent 86d3758 commit 3d68378

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/03-concepts/06-interacting-with-other-actors.mdx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ actor_run_details = await Actor.call(
2828
{'url': 'http://example.com', 'delay': 10000 },
2929
)
3030
run_client = Actor.apify_client.run(actor_run_details['id'])
31-
screenshot = await run_client().key_value_store().get_value('OUTPUT')
31+
screenshot = await run_client.key_value_store().get_value('OUTPUT')
3232
```
3333

3434
## Actor.call_task()
@@ -42,7 +42,7 @@ and waits for the started Actor run to finish.
4242
# wait for it to finish, and get its dataset items
4343
task_run_details = await Actor.call_task('Z3m6FPSj0GYZ25rQc')
4444
run_client = Actor.apify_client.run(task_run_details['id'])
45-
task_run_dataset_items = await run_client().dataset().list_items()
45+
task_run_dataset_items = await run_client.dataset().list_items()
4646
```
4747

4848
## Actor.metamorph()

0 commit comments

Comments
 (0)