Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix not working SDK sample #91

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions JavaScript/ocrsdk.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

return new ocrsdk(applicationId, password, serviceUrl);
}

exports.ProcessingSettings = ProcessingSettings;
Expand All @@ -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
Expand Down