Skip to content

Commit 5282b1f

Browse files
authored
Merge branch 'master' into fix-Actor-capitalization-open-api-documentation
2 parents a7ce8ba + 61882d4 commit 5282b1f

File tree

218 files changed

+17400
-17695
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

218 files changed

+17400
-17695
lines changed

.redocly.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,4 @@ plugins:
2727
decorators:
2828
apify/legacy-doc-url-decorator: on
2929
apify/client-references-links-decorator: on
30+
apify/code-samples-decorator: on
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { ApifyClient } from 'apify-client';
2+
3+
const apifyClient = new ApifyClient({
4+
token: '<TOKEN>',
5+
});
6+
const { items } = await apifyClient
7+
.actor('<ACTOR ID>')
8+
.builds()
9+
.list();
10+
11+
console.log(items);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { ApifyClient } from 'apify-client';
2+
3+
const apifyClient = new ApifyClient({
4+
token: '<TOKEN>',
5+
});
6+
const build = await apifyClient
7+
.actor('<ACTOR ID>')
8+
.build('0.0');
9+
10+
console.log(build);
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import { ApifyClient } from 'apify-client';
2+
3+
const apifyClient = new ApifyClient({
4+
token: '<TOKEN>',
5+
});
6+
await apifyClient.actor('<ACTOR ID>').delete();
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { ApifyClient } from 'apify-client';
2+
3+
const apifyClient = new ApifyClient({
4+
token: '<TOKEN>',
5+
});
6+
const actor = await apifyClient
7+
.actor('<ACTOR ID>')
8+
.get();
9+
10+
console.log(actor);
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import { ApifyClient } from 'apify-client';
2+
3+
const apifyClient = new ApifyClient({
4+
token: '<TOKEN>',
5+
});
6+
const updatedActor = await apifyClient
7+
.actor('<ACTOR ID>')
8+
.update({
9+
title: 'New title',
10+
});
11+
12+
console.log(updatedActor);
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
import { ApifyClient } from 'apify-client';
2+
3+
const apifyClient = new ApifyClient({
4+
token: '<TOKEN>',
5+
});
6+
const { items } = await apifyClient
7+
.actor('<ACTOR ID>')
8+
.runs()
9+
.list();
10+
11+
console.log(items);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { ApifyClient } from 'apify-client';
2+
3+
const apifyClient = new ApifyClient({
4+
token: '<TOKEN>',
5+
});
6+
const lastRun = await apifyClient
7+
.actor('<ACTOR ID>')
8+
.lastRun();
9+
10+
console.log(lastRun);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { ApifyClient } from 'apify-client';
2+
3+
const apifyClient = new ApifyClient({
4+
token: '<TOKEN>',
5+
});
6+
const run = await apifyClient
7+
.actor('<ACTOR ID>')
8+
.start({ foo: 'bar' });
9+
10+
console.log(run);
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
import { ApifyClient } from 'apify-client';
2+
3+
const apifyClient = new ApifyClient({
4+
token: '<TOKEN>',
5+
});
6+
await apifyClient
7+
.actor('<ACTOR ID>')
8+
.version('0.1')
9+
.delete();

0 commit comments

Comments
 (0)