From 354fe19d08373e546513ece2ad0979f8684ed788 Mon Sep 17 00:00:00 2001 From: Clayton Grassick Date: Wed, 5 Feb 2020 19:58:59 -0500 Subject: [PATCH] Fix not working SDK sample! --- JavaScript/ocrsdk.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/JavaScript/ocrsdk.js b/JavaScript/ocrsdk.js index bd0ce5a..fc57c12 100644 --- a/JavaScript/ocrsdk.js +++ b/JavaScript/ocrsdk.js @@ -16,8 +16,8 @@ try { throw new Error("xml2js module not found. Please install it with 'npm install xml2js'"); } -exports.create = function(applicationId, password) { - return new ocrsdk(applicationId, password); +exports.create = function(applicationId, password, serviceUrl) { + return new ocrsdk(applicationId, password, serviceUrl); } exports.ProcessingSettings = ProcessingSettings; @@ -38,6 +38,7 @@ exports.ProcessingSettings = ProcessingSettings; * @constructor * @param {string} applicationId Application Id. * @param {string} password Password for the application you received in e-mail. + * @param {string} serviceUrl Service url to use. * To create an application and obtain a password, * register at https://cloud.ocrsdk.com/Account/Register * More info on getting your application id and password at