Skip to content

Commit

Permalink
Add storage access keys
Browse files Browse the repository at this point in the history
  • Loading branch information
krasun committed Nov 22, 2023
1 parent 5b5bffb commit 0623222
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 1 deletion.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "screenshotone-api-sdk",
"homepage": "https://screenshotone.com",
"version": "1.1.4",
"version": "1.1.5",
"description": "Use ScreenshotOne.com API to generate screenshots of any website.",
"repository": {
"type": "git",
Expand Down
18 changes: 18 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1188,6 +1188,24 @@ export class AnimateOptions {
return this;
}

/**
* Access key ID. It overrides the one specified in the dashboard configuration.
*/
storageAccessKeyId(accessKeyId: string): AnimateOptions {
this.put("storage_access_key_id", accessKeyId);

return this
}

/**
* Secret access key. It overrides the one specified in the dashboard configuration.
*/
storageSecretAccessKey(secretAccessKey: string): AnimateOptions {
this.put("storage_secret_access_key", secretAccessKey);

return this
}

/**
* The parameter is required if you set store=true.
* You must specify the key for the file, but don’t specify an extension,
Expand Down

0 comments on commit 0623222

Please sign in to comment.