diff --git a/apify-api/openapi/code_samples/javascript/actorBuild_abort_post.js b/apify-api/openapi/code_samples/javascript/actorBuild_abort_post.js index ea5a34b6c..9bc2a962d 100644 --- a/apify-api/openapi/code_samples/javascript/actorBuild_abort_post.js +++ b/apify-api/openapi/code_samples/javascript/actorBuild_abort_post.js @@ -1,6 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const abortedBuild = await apifyClient.build('my-build-ID').abort(); +const apifyClient = new ApifyClient({ + token: '', +}); +const abortedBuild = await apifyClient + .build('') + .abort(); console.log(abortedBuild); diff --git a/apify-api/openapi/code_samples/javascript/actorBuild_delete.js b/apify-api/openapi/code_samples/javascript/actorBuild_delete.js index 918b5e344..d5dba0bbf 100644 --- a/apify-api/openapi/code_samples/javascript/actorBuild_delete.js +++ b/apify-api/openapi/code_samples/javascript/actorBuild_delete.js @@ -1,4 +1,6 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -await apifyClient.build('my-build-ID').delete(); +const apifyClient = new ApifyClient({ + token: '', +}); +await apifyClient.build('').delete(); diff --git a/apify-api/openapi/code_samples/javascript/actorBuild_get.js b/apify-api/openapi/code_samples/javascript/actorBuild_get.js index b01c67775..e5d92e363 100644 --- a/apify-api/openapi/code_samples/javascript/actorBuild_get.js +++ b/apify-api/openapi/code_samples/javascript/actorBuild_get.js @@ -1,6 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const build = await apifyClient.build('my-build-ID').get(); +const apifyClient = new ApifyClient({ + token: '', +}); +const build = await apifyClient + .build('') + .get(); console.log(build); diff --git a/apify-api/openapi/code_samples/javascript/actorBuild_log_get.js b/apify-api/openapi/code_samples/javascript/actorBuild_log_get.js index 4ac2ec1cf..8e71959ab 100644 --- a/apify-api/openapi/code_samples/javascript/actorBuild_log_get.js +++ b/apify-api/openapi/code_samples/javascript/actorBuild_log_get.js @@ -1,7 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const buildLog = await apifyClient.build('my-build-ID') +const apifyClient = new ApifyClient({ + token: '', +}); +const buildLog = await apifyClient + .build('') .log() .get(); diff --git a/apify-api/openapi/code_samples/javascript/actorBuilds_get.js b/apify-api/openapi/code_samples/javascript/actorBuilds_get.js index 43ed251b3..52ed3e4e2 100644 --- a/apify-api/openapi/code_samples/javascript/actorBuilds_get.js +++ b/apify-api/openapi/code_samples/javascript/actorBuilds_get.js @@ -1,6 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const { items } = await apifyClient.builds().list(); +const apifyClient = new ApifyClient({ + token: '', +}); +const { items } = await apifyClient + .builds() + .list(); console.log(items); diff --git a/apify-api/openapi/code_samples/javascript/actorRun_abort_post.js b/apify-api/openapi/code_samples/javascript/actorRun_abort_post.js index 3f193a942..1af7ebcea 100644 --- a/apify-api/openapi/code_samples/javascript/actorRun_abort_post.js +++ b/apify-api/openapi/code_samples/javascript/actorRun_abort_post.js @@ -1,6 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const run = await apifyClient.run('my-run-ID').abort(); +const apifyClient = new ApifyClient({ + token: '', +}); +const abortedRun = await apifyClient + .run('') + .abort(); -console.log(run); +console.log(abortedRun); diff --git a/apify-api/openapi/code_samples/javascript/actorRun_delete.js b/apify-api/openapi/code_samples/javascript/actorRun_delete.js index 457402bf7..96f1c596b 100644 --- a/apify-api/openapi/code_samples/javascript/actorRun_delete.js +++ b/apify-api/openapi/code_samples/javascript/actorRun_delete.js @@ -1,6 +1,6 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const run = await apifyClient.run('my-run-ID').delete(); - -console.log(run); +const apifyClient = new ApifyClient({ + token: '', +}); +await apifyClient.run('').delete(); diff --git a/apify-api/openapi/code_samples/javascript/actorRun_get.js b/apify-api/openapi/code_samples/javascript/actorRun_get.js index 13b482aa7..a521d49ca 100644 --- a/apify-api/openapi/code_samples/javascript/actorRun_get.js +++ b/apify-api/openapi/code_samples/javascript/actorRun_get.js @@ -1,6 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const run = await apifyClient.run('my-run-ID').get(); +const apifyClient = new ApifyClient({ + token: '', +}); +const run = await apifyClient + .run('') + .get(); console.log(run); diff --git a/apify-api/openapi/code_samples/javascript/actorRun_metamorph_post.js b/apify-api/openapi/code_samples/javascript/actorRun_metamorph_post.js index d28926e93..7cc0bc3b2 100644 --- a/apify-api/openapi/code_samples/javascript/actorRun_metamorph_post.js +++ b/apify-api/openapi/code_samples/javascript/actorRun_metamorph_post.js @@ -1,7 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const metamorphedRun = await apifyClient.run('my-run-ID') - .metamorph('target-actor-ID'); +const apifyClient = new ApifyClient({ + token: '', +}); +const metamorphedRun = await apifyClient + .run('') + .metamorph(''); console.log(metamorphedRun); diff --git a/apify-api/openapi/code_samples/javascript/actorRun_put.js b/apify-api/openapi/code_samples/javascript/actorRun_put.js index e879cb8ad..9aef10b16 100644 --- a/apify-api/openapi/code_samples/javascript/actorRun_put.js +++ b/apify-api/openapi/code_samples/javascript/actorRun_put.js @@ -1,9 +1,12 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const updatedRun = await apifyClient.run('my-run-ID') +const apifyClient = new ApifyClient({ + token: '', +}); +const updatedRun = await apifyClient + .run('') .update({ - statusMessage: 'My status message', + statusMessage: 'Actor has finished', }); console.log(updatedRun); diff --git a/apify-api/openapi/code_samples/javascript/actorRun_reboot_post.js b/apify-api/openapi/code_samples/javascript/actorRun_reboot_post.js index 4b20ceea3..5e837a87b 100644 --- a/apify-api/openapi/code_samples/javascript/actorRun_reboot_post.js +++ b/apify-api/openapi/code_samples/javascript/actorRun_reboot_post.js @@ -1,6 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const rebootedRun = await apifyClient.run('my-run-ID').reboot(); +const apifyClient = new ApifyClient({ + token: '', +}); +const rebootedRun = await apifyClient + .run('') + .reboot(); console.log(rebootedRun); diff --git a/apify-api/openapi/code_samples/javascript/actorRun_resurrect_post.js b/apify-api/openapi/code_samples/javascript/actorRun_resurrect_post.js index a7957be44..975a94b6c 100644 --- a/apify-api/openapi/code_samples/javascript/actorRun_resurrect_post.js +++ b/apify-api/openapi/code_samples/javascript/actorRun_resurrect_post.js @@ -1,6 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const run = await apifyClient.run('my-run-ID').resurrect(); +const apifyClient = new ApifyClient({ + token: '', +}); +const resurrectedRun = await apifyClient + .run('') + .resurrect(); -console.log(run); +console.log(resurrectedRun); diff --git a/apify-api/openapi/code_samples/javascript/actorRuns_get.js b/apify-api/openapi/code_samples/javascript/actorRuns_get.js index 9f61c2067..9d58c9387 100644 --- a/apify-api/openapi/code_samples/javascript/actorRuns_get.js +++ b/apify-api/openapi/code_samples/javascript/actorRuns_get.js @@ -1,6 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -const { items } = await apifyClient.runs().list(); +const apifyClient = new ApifyClient({ + token: '', +}); +const { items } = await apifyClient + .runs() + .list(); console.log(items);