mirror of
https://github.com/kevin-DL/services.git
synced 2026-01-17 13:24:56 +00:00
Public holidays API (#212)
This commit is contained in:
12
examples/holidays/countries/node/listCountries.js
Executable file
12
examples/holidays/countries/node/listCountries.js
Executable file
@@ -0,0 +1,12 @@
|
||||
import * as holidays from "m3o/holidays";
|
||||
|
||||
//
|
||||
async function ListCountries() {
|
||||
let holidaysService = new holidays.HolidaysService(
|
||||
process.env.MICRO_API_TOKEN
|
||||
);
|
||||
let rsp = await holidaysService.countries({});
|
||||
console.log(rsp);
|
||||
}
|
||||
|
||||
await ListCountries();
|
||||
Reference in New Issue
Block a user