1.0.0 • Published 7 years ago
rest-ocr v1.0.0
Dynamsoft OCR RESTful API
Use the module to invoke Dynamsoft OCR RESTful API.
Getting Started
Createa a Dynamsoft account and generate the API key.
Initialize the module:
var DDC = require('ddc'); var key = '' // get the API key from https://cloud.dynamsoft.com/ocr/ocr-api-key-settings.aspx var ddc = new DDC(key);
Call a method.
ddc.queryQuota(function (error, response, body) { if (!error && response.statusCode == 200) { console.log(body); } });
API List
- queryQuota(function(error, response, body) {})
- queryDisk(function(error, response, body) {})
- uploadFile(fileName, filePath, function(error, response, body) {})
- doOCR(data, function(error, response, body) {})
{"list":[{"file_name":"1.jpg"},{"file_name":"2.jpg"}]} // data
- downloadFile(fileName, function(error, response, body) {})
- deleteFile(fileName, function(error, response, body) {})
- deleteMultiFiles(data, function(error, response, body) {})
{"list":[{"file_name":"1.jpg"},{"file_name":"2.jpg"}]} // data
1.0.0
7 years ago