We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8be6129 commit ed6f7adCopy full SHA for ed6f7ad
apify-api/openapi/code_samples/js/acts_post.js
@@ -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 myActor = await actorCollectionClient.create({ name: 'my-actor' });
7
8
+console.log(myActor);
apify-api/openapi/paths/actors/acts.yaml
@@ -245,3 +245,8 @@ post:
245
x-py-parent: ActorCollectionClientAsync
246
x-py-name: create
247
x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/ActorCollectionClientAsync#create
248
+ x-codeSamples:
249
+ - lang: JavaScript
250
+ label: JS client
251
+ source:
252
+ $ref: ../../code_samples/js/acts_post.js
0 commit comments