mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-17 05:14:52 +00:00
Public holidays API (#212)
This commit is contained in:
15
examples/holidays/list/node/getHolidays.js
Executable file
15
examples/holidays/list/node/getHolidays.js
Executable file
@@ -0,0 +1,15 @@
|
||||
import * as holidays from "m3o/holidays";
|
||||
|
||||
//
|
||||
async function GetHolidays() {
|
||||
let holidaysService = new holidays.HolidaysService(
|
||||
process.env.MICRO_API_TOKEN
|
||||
);
|
||||
let rsp = await holidaysService.list({
|
||||
country_code: "GB",
|
||||
year: 2022,
|
||||
});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await GetHolidays();
|
||||
Reference in New Issue
Block a user