diff --git a/apify-api/openapi/code_samples/javascript/act_version_delete.js b/apify-api/openapi/code_samples/javascript/act_version_delete.js index af804295a..576d6daea 100644 --- a/apify-api/openapi/code_samples/javascript/act_version_delete.js +++ b/apify-api/openapi/code_samples/javascript/act_version_delete.js @@ -1,7 +1,9 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -// Replace apify/my-sample-actor with your Actor's ID or technical name -await apifyClient.actor('apify/my-sample-actor') +const apifyClient = new ApifyClient({ + token: '', +}); +await apifyClient + .actor('') .version('0.1') .delete(); diff --git a/apify-api/openapi/code_samples/javascript/act_version_envVar_delete.js b/apify-api/openapi/code_samples/javascript/act_version_envVar_delete.js index 9a09f53a2..92d57d9e4 100644 --- a/apify-api/openapi/code_samples/javascript/act_version_envVar_delete.js +++ b/apify-api/openapi/code_samples/javascript/act_version_envVar_delete.js @@ -1,8 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -// Replace apify/my-sample-actor with your Actor's ID or technical name -await apifyClient.actor('apify/my-sample-actor') +const apifyClient = new ApifyClient({ + token: '', +}); +await apifyClient + .actor('') .version('0.1') .envVar('MY_ENV_VAR') .delete(); diff --git a/apify-api/openapi/code_samples/javascript/act_version_envVar_get.js b/apify-api/openapi/code_samples/javascript/act_version_envVar_get.js index 0bcf2b6d4..7a200fb7e 100644 --- a/apify-api/openapi/code_samples/javascript/act_version_envVar_get.js +++ b/apify-api/openapi/code_samples/javascript/act_version_envVar_get.js @@ -1,8 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -// Replace apify/my-sample-actor with your Actor's ID or technical name -const envVar = await apifyClient.actor('apify/my-sample-actor') +const apifyClient = new ApifyClient({ + token: '', +}); +const envVar = await apifyClient + .actor('') .version('0.1') .envVar('MY_ENV_VAR') .get(); diff --git a/apify-api/openapi/code_samples/javascript/act_version_envVar_put.js b/apify-api/openapi/code_samples/javascript/act_version_envVar_put.js index e4af83f1b..18318129e 100644 --- a/apify-api/openapi/code_samples/javascript/act_version_envVar_put.js +++ b/apify-api/openapi/code_samples/javascript/act_version_envVar_put.js @@ -1,13 +1,15 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -// Replace apify/my-sample-actor with your Actor's ID or technical name -const updatedEnvVar = await apifyClient.actor('apify/my-sample-actor') +const apifyClient = new ApifyClient({ + token: '', +}); +const updatedEnvVar = await apifyClient + .actor('') .version('0.1') .envVar('MY_ENV_VAR') .update({ name: 'MY_ENV_VAR', - value: '54321', + value: 'my-new-value', }); console.log(updatedEnvVar); diff --git a/apify-api/openapi/code_samples/javascript/act_version_envVars_get.js b/apify-api/openapi/code_samples/javascript/act_version_envVars_get.js index 460780960..896c14b05 100644 --- a/apify-api/openapi/code_samples/javascript/act_version_envVars_get.js +++ b/apify-api/openapi/code_samples/javascript/act_version_envVars_get.js @@ -1,8 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -// Replace apify/my-sample-actor with your Actor's ID or technical name -const { items } = await apifyClient.actor('apify/my-sample-actor') +const apifyClient = new ApifyClient({ + token: '', +}); +const { items } = await apifyClient + .actor('') .version('0.1') .envVars() .list(); diff --git a/apify-api/openapi/code_samples/javascript/act_version_envVars_post.js b/apify-api/openapi/code_samples/javascript/act_version_envVars_post.js index 53618e9ba..6eace8ced 100644 --- a/apify-api/openapi/code_samples/javascript/act_version_envVars_post.js +++ b/apify-api/openapi/code_samples/javascript/act_version_envVars_post.js @@ -1,13 +1,15 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -// Replace apify/my-sample-actor with your Actor's ID or technical name -const envVar = await apifyClient.actor('apify/my-sample-actor') +const apifyClient = new ApifyClient({ + token: '', +}); +const envVar = await apifyClient + .actor('') .version('0.1') .envVars() .create({ name: 'MY_ENV_VAR', - value: '12345', + value: 'my-new-value', isSecret: true, }); diff --git a/apify-api/openapi/code_samples/javascript/act_version_get.js b/apify-api/openapi/code_samples/javascript/act_version_get.js index 2ec4faf5d..d3dc8770b 100644 --- a/apify-api/openapi/code_samples/javascript/act_version_get.js +++ b/apify-api/openapi/code_samples/javascript/act_version_get.js @@ -1,8 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -// Replace apify/my-sample-actor with your Actor's ID or technical name -const version = await apifyClient.actor('apify/my-sample-actor') +const apifyClient = new ApifyClient({ + token: '', +}); +const version = await apifyClient + .actor('') .version('0.1') .get(); diff --git a/apify-api/openapi/code_samples/javascript/act_version_put.js b/apify-api/openapi/code_samples/javascript/act_version_put.js index dc6288d8e..51c213aad 100644 --- a/apify-api/openapi/code_samples/javascript/act_version_put.js +++ b/apify-api/openapi/code_samples/javascript/act_version_put.js @@ -1,11 +1,13 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -// Replace apify/my-sample-actor with your Actor's ID or technical name -const updatedVersion = await apifyClient.actor('apify/my-sample-actor') +const apifyClient = new ApifyClient({ + token: '', +}); +const updatedVersion = await apifyClient + .actor('') .version('0.1') .update({ - gitRepoUrl: 'https://github.com/my-github-account/new-actor-repo', + buildTag: 'latest', }); console.log(updatedVersion); diff --git a/apify-api/openapi/code_samples/javascript/act_versions_get.js b/apify-api/openapi/code_samples/javascript/act_versions_get.js index 93a59c90f..d2399a533 100644 --- a/apify-api/openapi/code_samples/javascript/act_versions_get.js +++ b/apify-api/openapi/code_samples/javascript/act_versions_get.js @@ -1,8 +1,10 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -// Replace apify/my-sample-actor with your Actor's ID or technical name -const { items } = await apifyClient.actor('apify/my-sample-actor') +const apifyClient = new ApifyClient({ + token: '', +}); +const { items } = await apifyClient + .actor('') .versions() .list(); diff --git a/apify-api/openapi/code_samples/javascript/act_versions_post.js b/apify-api/openapi/code_samples/javascript/act_versions_post.js index 3c1dd17a3..e525a391b 100644 --- a/apify-api/openapi/code_samples/javascript/act_versions_post.js +++ b/apify-api/openapi/code_samples/javascript/act_versions_post.js @@ -1,13 +1,15 @@ import { ApifyClient } from 'apify-client'; -const apifyClient = new ApifyClient({ token: 'my-token' }); -// Replace apify/my-sample-actor with your Actor's ID or technical name -const version = await apifyClient.actor('apify/my-sample-actor') +const apifyClient = new ApifyClient({ + token: '', +}); +const version = await apifyClient + .actor('') .versions() .create({ versionNumber: '0.1', sourceType: 'GIT_REPO', - gitRepoUrl: 'https://github.com/my-github-account/actor-repo', + gitRepoUrl: 'https://github.com/my/repo', }); console.log(version);