How to Retrieve the Public Holidays for a Country in Node.JS

npm install cloudmersive-validate-api-client --save
"dependencies": {
"cloudmersive-validate-api-client": "^1.2.4"
}
var CloudmersiveValidateApiClient = require('cloudmersive-validate-api-client');
var defaultClient = CloudmersiveValidateApiClient.ApiClient.instance;
// Configure API key authorization: Apikey
var Apikey = defaultClient.authentications['Apikey'];
Apikey.apiKey = 'YOUR API KEY';
var apiInstance = new CloudmersiveValidateApiClient.DateTimeApi();var input = new CloudmersiveValidateApiClient.GetPublicHolidaysRequest(); // GetPublicHolidaysRequest | Input requestvar callback = function(error, data, response) {
if (error) {
console.error(error);
} else {
console.log('API called successfully. Returned data: ' + data);
}
};
apiInstance.dateTimeGetPublicHolidays(input, callback);

--

--

--

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Dockerizing a Node.JS web application

How Much Does a Website Redesign Cost in 2022?

How Much Does a Website Redesign Cost

Exploring Using SVG Over HTML/DOM for Performance

React Redux: performance considerations when dispatching multiple actions

Frontend Weekly Digest #34 (20–26 November 2017)

Frontend Weekly Digest #233 (25–31 October 2021)

JWT authentication with NextJS

Day 125 — Purchasing an Item From the Shop

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Cloudmersive

Cloudmersive

There’s an API for that. Cloudmersive is a leader in Highly Scalable Cloud APIs.

More from Medium

Currency API: How to Convert Prices (with up-to-date exchange rates) with JavaScript

RedisJSON RAM Usage

How to Install KeyCloak 17 on Windows Machine

How to solve argon2 install error when using NPM?