-
Notifications
You must be signed in to change notification settings - Fork 81
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
1c68faa
commit d78401d
Showing
5 changed files
with
42 additions
and
0 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
apify-api/openapi/code_samples/javascript/actorTask_input_get.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { ApifyClient } from 'apify-client'; | ||
|
||
const apifyClient = new ApifyClient({ token: 'my-token' }); | ||
// Replace apify~my-sample-task with your task's ID or technical name | ||
const input = await apifyClient.task('apify~my-sample-task').getInput(); | ||
|
||
console.log(input); |
10 changes: 10 additions & 0 deletions
10
apify-api/openapi/code_samples/javascript/actorTask_input_put.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { ApifyClient } from 'apify-client'; | ||
|
||
const apifyClient = new ApifyClient({ token: 'my-token' }); | ||
// Replace apify~my-sample-task with your task's ID or technical name | ||
const updatedInput = await apifyClient.task('apify~my-sample-task') | ||
.updateInput({ | ||
// Your input here | ||
}); | ||
|
||
console.log(updatedInput); |
9 changes: 9 additions & 0 deletions
9
apify-api/openapi/code_samples/javascript/actorTask_runs_get.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ApifyClient } from 'apify-client'; | ||
|
||
const apifyClient = new ApifyClient({ token: 'my-token' }); | ||
// Replace apify~my-sample-task with your task's ID or technical name | ||
const { items } = await apifyClient.task('apify~my-sample-task') | ||
.runs() | ||
.list(); | ||
|
||
console.log(items); |
7 changes: 7 additions & 0 deletions
7
apify-api/openapi/code_samples/javascript/actorTask_runs_post.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { ApifyClient } from 'apify-client'; | ||
|
||
const apifyClient = new ApifyClient({ token: 'my-token' }); | ||
// Replace apify~my-sample-task with your task's ID or technical name | ||
const run = await apifyClient.task('apify~my-sample-task').start(); | ||
|
||
console.log(run); |
9 changes: 9 additions & 0 deletions
9
apify-api/openapi/code_samples/javascript/actorTask_webhooks_get.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { ApifyClient } from 'apify-client'; | ||
|
||
const apifyClient = new ApifyClient({ token: 'my-token' }); | ||
// Replace apify~my-sample-task with your task's ID or technical name | ||
const { items } = await apifyClient.task('apify~my-sample-task') | ||
.webhooks() | ||
.list(); | ||
|
||
console.log(items); |