Skip to content

Commit 8be6129

Browse files
committed
Add first example
1 parent c1a3dce commit 8be6129

File tree

2 files changed

+14
-0
lines changed

2 files changed

+14
-0
lines changed
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
import { ApifyClient } from 'apify-client';
2+
3+
const apifyClient = new ApifyClient({ token: 'my-token' });
4+
const actorCollectionClient = apifyClient.actors();
5+
6+
const { items } = await actorCollectionClient.list();
7+
8+
console.log(items);

apify-api/openapi/paths/actors/acts.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,12 @@ get:
9494
x-py-parent: ActorCollectionClientAsync
9595
x-py-name: list
9696
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/ActorCollectionClientAsync#list
97+
x-codeSamples:
98+
- lang: JavaScript
99+
label: JS client
100+
source:
101+
$ref: ../../code_samples/js/acts_get.js
102+
97103
post:
98104
tags:
99105
- Actors/Actor collection

0 commit comments

Comments
 (0)