screenshotone-api-sdk
Advanced tools
Comparing version 1.0.15 to 1.0.16
@@ -33,2 +33,4 @@ "use strict"; | ||
const cross_fetch_1 = __importDefault(require("cross-fetch")); | ||
const API_BASE_URL = "https://api.screenshotone.com"; | ||
const API_TAKE_PATH = "/take"; | ||
/** | ||
@@ -39,4 +41,2 @@ * Represents an API client for the screenshotone.com API. | ||
constructor(accessKey, secretKey) { | ||
this.API_BASE_URL = "https://api.screenshotone.com"; | ||
this.API_TAKE_PATH = "/take"; | ||
this.accessKey = accessKey; | ||
@@ -53,3 +53,3 @@ this.secretKey = secretKey; | ||
queryString += '&signature=' + signature; | ||
return `${this.API_BASE_URL}${this.API_TAKE_PATH}?${queryString}`; | ||
return `${API_BASE_URL}${API_TAKE_PATH}?${queryString}`; | ||
} | ||
@@ -56,0 +56,0 @@ async take(options) { |
{ | ||
"name": "screenshotone-api-sdk", | ||
"homepage": "https://screenshotone.com", | ||
"version": "1.0.15", | ||
"version": "1.0.16", | ||
"description": "Use ScreenshotOne.com API to generate screenshots of any website.", | ||
@@ -32,3 +32,2 @@ "repository": { | ||
"types": "dist/@types/main.d.ts", | ||
"type": "module", | ||
"devDependencies": { | ||
@@ -35,0 +34,0 @@ "@types/big.js": "^6.1.3", |
@@ -5,2 +5,5 @@ import * as crypto from 'crypto'; | ||
const API_BASE_URL = "https://api.screenshotone.com"; | ||
const API_TAKE_PATH = "/take"; | ||
/** | ||
@@ -10,5 +13,2 @@ * Represents an API client for the screenshotone.com API. | ||
export class Client { | ||
private readonly API_BASE_URL = "https://api.screenshotone.com"; | ||
private readonly API_TAKE_PATH = "/take"; | ||
private readonly accessKey: string; | ||
@@ -32,3 +32,3 @@ private readonly secretKey: string; | ||
return `${this.API_BASE_URL}${this.API_TAKE_PATH}?${queryString}`; | ||
return `${API_BASE_URL}${API_TAKE_PATH}?${queryString}`; | ||
} | ||
@@ -35,0 +35,0 @@ |
19309
No