Skip to content

Commit

Permalink
Updated the URL for getting available scanners
Browse files Browse the repository at this point in the history
  • Loading branch information
yushulx committed Sep 14, 2023
1 parent 413638e commit 3ba7da7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ module.exports = {
getDevices: async function (host) {
devices = [];
// Device type: https://www.dynamsoft.com/web-twain/docs/info/api/Dynamsoft_Enum.html
// http://127.0.0.1:18622/DWTAPI/Scanners?type=64
let url = host + '/DWTAPI/Scanners?type=64'
// http://127.0.0.1:18622/DWTAPI/Scanners?type=64 for TWAIN only
let url = host + '/DWTAPI/Scanners'
try {
let response = await axios.get(url)
.catch(error => {
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "docscan4nodejs",
"version": "0.2.2",
"version": "0.2.3",
"description": "Node.js API for Dynamsoft Document Scanning Service. Supports TWAIN, SANE, ICA, WIA, eSCL scanners.",
"keywords": [
"Document Scanning",
Expand Down

0 comments on commit 3ba7da7

Please sign in to comment.