From 04e5a7cf690fc3a0dc96e73a3aec84daf9cc3616 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tanel=20T=C3=A4hep=C3=B5ld?= Date: Fri, 26 Apr 2019 16:38:59 +0300 Subject: [PATCH] Updated base url --- index.js | 2 +- readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index b623a98..d9fd543 100644 --- a/index.js +++ b/index.js @@ -6,7 +6,7 @@ const querystring = require('querystring'); class PDFGeneratorAPI { constructor(key, secret, workspace, timeout) { - this.baseUrl = 'https://pdfgeneratorapi.com/api/v3/'; + this.baseUrl = 'https://us1.pdfgeneratorapi.com/api/v3/'; this.key = key; this.secret = secret; this.workspace = workspace; diff --git a/readme.md b/readme.md index 8be8a67..16a442d 100644 --- a/readme.md +++ b/readme.md @@ -14,7 +14,7 @@ let Client = new PDFGeneratorAPI( '{your_api_key}', '{your_api_secret}' ); - +Client.setBaseUrl('https://us1.pdfgeneratorapi.com/api/v3/'); Client.setWorkspace('{unique_workspace_identifier}'); Client.getAll().then(function(response) {