Add the Node client to your package.json:
"dependencies": { "cloudmersive-validate-api-client": "^1.1.4" }
Or install it using npm install:
npm install cloudmersive-validate-api-client --save
Import the API Client package by adding this line to the top of your .js file:
var CloudmersiveValidateApiClient = require('cloudmersive-validate-api-client');
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
var defaultClient = CloudmersiveValidateApiClient.ApiClient.instance; // Configure API key authorization: Apikey var Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = "YOUR_API_KEY_HERE" var api = new CloudmersiveValidateApiClient.DomainApi() var domain = "cloudmersive.com"; // {String} Domain name to check, for example \"cloudmersive.com\". The input is a string so be sure to enclose it in double-quotes. var callback = function (error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.domainCheck(domain, callback);
Add the Node client to your package.json:
"dependencies": { "cloudmersive-image-api-client": "^1.3.1" }
Or install it using npm install:
npm install cloudmersive-image-api-client --save
Import the API Client package by adding this line to the top of your .js file:
var CloudmersiveImageApiClient = require('cloudmersive-image-api-client');
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
var defaultClient = CloudmersiveImageApiClient.ApiClient.instance; // Configure API key authorization: Apikey var Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = "YOUR API KEY" var api = new CloudmersiveImageApiClient.FaceApi() var imageBytes = fs.readFileSync('C:\\temp\\input.jpg'); var callback = function (error, data, response) { if (error) { console.error(error); res.end('Error\n'); } else { console.log('API called successfully.'); res.writeHead(200, { 'Content-Type': 'image/png' }); res.end(data, 'binary'); //res.end(data); } }; api.faceCropFirst( Buffer.from(imageBytes.buffer), callback);
Add the Node client to your package.json:
"dependencies": { "cloudmersive-dataintegration-api-client": "^2.0.2" }
Or install it using npm install:
npm install cloudmersive-dataintegration-api-client --save
Import the API Client package by adding this line to the top of your .js file:
var CloudmersiveDataintegrationApiClient = require('cloudmersive-dataintegration-api-client');
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
var defaultClient = CloudmersiveDataintegrationApiClient.ApiClient.instance; // Configure API key authorization: Apikey var Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = 'YOUR API KEY'; var apiInstance = new CloudmersiveDataintegrationApiClient.BackupConvertApi(); var opts = { 'inputFile': Buffer.from(fs.readFileSync("C:\\temp\\inputfile").buffer) // File | Input file to perform the operation on }; var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; apiInstance.dataintegrationBackupConvertMssqlBakGetTablesPost(opts, callback);
Add the Node client to your package.json:
"dependencies": { "cloudmersive-currency-api-client": "^1.2.0" }
Or install it using npm install:
npm install cloudmersive-currency-api-client --save
Import the API Client package by adding this line to the top of your .js file:
var CloudmersiveCurrencyApiClient = require('cloudmersive-currency-api-client');
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
var defaultClient = CloudmersiveCurrencyApiClient.ApiClient.instance; // Configure API key authorization: Apikey var Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = 'YOUR API KEY'; // Uncomment the following line to set a prefix for the API key, e.g. "Token" (defaults to null) //Apikey.apiKeyPrefix = 'Token'; var apiInstance = new CloudmersiveCurrencyApiClient.CurrencyExchangeApi(); var source = "source_example"; // String | Source currency three-digit code (ISO 4217), e.g. USD, EUR, etc. var destination = "destination_example"; // String | Destination currency three-digit code (ISO 4217), e.g. USD, EUR, etc. var sourcePrice = 1.2; // Number | Input price, such as 19.99 in source currency var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; apiInstance.currencyExchangeConvertCurrency(source, destination, sourcePrice, callback);
Add the Node client to your package.json:
"dependencies": { "cloudmersive-convert-api-client": "^2.4.8" }
Or install it using npm install:
npm install cloudmersive-convert-api-client --save
Import the API Client package by adding this line to the top of your .js file:
var CloudmersiveConvertApiClient = require('cloudmersive-convert-api-client');
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
var defaultClient = CloudmersiveConvertApiClient.ApiClient.instance; // Configure API key authorization: Apikey var Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = "YOUR API KEY" var api = new CloudmersiveConvertApiClient.ConvertDataApi() var inputFile = fs.readFileSync("C:\\temp\\input.docx"); // {File} Input file to perform the operation on. var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.convertDataCsvToJson(Buffer.from(inputFile.buffer), callback);
Add the Node client to your package.json:
"dependencies": { "cloudmersive-nlp-api-client": "^2.0.9" }
Or install it using npm install:
npm install cloudmersive-nlp-api-client --save
Import the API Client package by adding this line to the top of your .js file:
var CloudmersiveNlpApiClient = require('cloudmersive-nlp-api-client');
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
var defaultClient = CloudmersiveNlpApiClient.ApiClient.instance; // Configure API key authorization: Apikey var Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = "YOUR API KEY" var api = new CloudmersiveNlpApiClient.ExtractEntitiesStringApi() var value = "value_example"; // {String} Input string var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.extractEntitiesStringPost(value, callback);
Add the Node client to your package.json:
"dependencies": { "cloudmersive-ocr-api-client": "^1.3.3" }
Or install it using npm install:
npm install cloudmersive-ocr-api-client --save
Import the API Client package by adding this line to the top of your .js file:
var CloudmersiveOcrApiClient = require('cloudmersive-ocr-api-client');
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
var defaultClient = CloudmersiveOcrApiClient.ApiClient.instance; // Configure API key authorization: Apikey var Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = "YOUR API KEY" var api = new CloudmersiveOcrApiClient.ImageOcrApi() var imageFile = fs.readFileSync("C:\\temp\\page.png"); // {File} Image file to perform OCR on. Common file formats such as PNG, JPEG are supported. var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.imageOcrPost(Buffer.from(pageBytes.buffer), callback);
Add the Node client to your package.json:
"dependencies": { "cloudmersive-barcodeapi-client": "^1.1.2" }
Or install it using npm install:
npm install cloudmersive-barcodeapi-client --save
Import the API Client package by adding this line to the top of your .js file:
var CloudmersiveBarcodeapiClient = require('cloudmersive-barcodeapi-client');
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
var defaultClient = CloudmersiveBarcodeapiClient.ApiClient.instance; // Configure API key authorization: Apikey var Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = "YOUR API KEY" var api = new CloudmersiveBarcodeapiClient.BarcodeLookupApi() var value = "value_example"; // {String} Barcode value var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.barcodeLookupEanLookup(value, callback);
Add the Node client to your package.json:
"dependencies": { "cloudmersive-video-api-client": "^2.0.1" } }
Or install it using npm install:
npm install cloudmersive-video-api-client --save
Import the API Client package by adding this line to the top of your .js file:
var CloudmersiveVideoApiClient = require('cloudmersive-video-api-client');
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
var defaultClient = CloudmersiveVideoApiClient.ApiClient.instance; // Configure API key authorization: Apikey var Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = 'YOUR API KEY'; var apiInstance = new CloudmersiveVideoApiClient.VideoApi(); var inputFile = Buffer.from(fs.readFileSync("C:\\temp\\inputfile").buffer); // File | Input file to perform the operation on. var opts = { 'fileUrl': "fileUrl_example", // String | Optional; URL of a video file being used for conversion. Use this option for files larger than 2GB. 'maxWidth': 56, // Number | Optional; Maximum width of the output video, up to the original video width. Defaults to original video width. 'maxHeight': 56, // Number | Optional; Maximum height of the output video, up to the original video width. Defaults to original video height. 'preserveAspectRatio': true, // Boolean | Optional; If false, the original video's aspect ratio will not be preserved, allowing customization of the aspect ratio using maxWidth and maxHeight, potentially skewing the video. Default is true. 'frameRate': 56, // Number | Optional; Specify the frame rate of the output video. Defaults to original video frame rate. 'quality': 56, // Number | Optional; Specify the quality of the output video, where 100 is lossless and 1 is the lowest possible quality with highest compression. Default is 50. 'extendProcessingTime': true // Boolean | Optional; If true, will allow additional processing time for the video file conversion, using one API call per additional minute over the 5 minute default processing time, up to a maximum of 25 total minutes. This is generally necessary for files larger than 500 MB or longer than 30 minutes. }; var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; apiInstance.videoConvertToMp4(inputFile, opts, callback);
Add the Node client to your package.json:
"dependencies": { "cloudmersive-virus-api-client": "^1.1.7" }
Or install it using npm install:
npm install cloudmersive-virus-api-client --save
Import the API Client package by adding this line to the top of your .js file:
var CloudmersiveVirusApiClient = require('cloudmersive-virus-api-client');
Get your API Key (available in your Account Dashboard) and instantiate the API Client object:
var defaultClient = CloudmersiveVirusApiClient.ApiClient.instance; // Configure API key authorization: Apikey var Apikey = defaultClient.authentications['Apikey']; Apikey.apiKey = "YOUR API KEY" var api = new CloudmersiveVirusApiClient.ScanApi() var inputFile = fs.readFileSync("C:\\temp\\input.docx"); var callback = function(error, data, response) { if (error) { console.error(error); } else { console.log('API called successfully. Returned data: ' + data); } }; api.scanFile(Buffer.from(inputFile.buffer), callback);