import "github.com/joshtronic/go-holidayapi"
hapi := holidayapi.NewV1("__YOUR_API_KEY__")
holidays, err := hapi.Holidays(map[string]interface{}{
"country": "AF-PIA",
"year": "2023",
})
import { HolidayAPI } from 'holidayapi';
const key = '__YOUR_API_KEY__'
const holidayApi = new HolidayAPI({ key });
holidayApi.holidays({
country: 'AF-PIA',
year: '2023',
});
$key = '__YOUR_API_KEY__';
$holiday_api = new \HolidayAPI\Client(['key' => $key]);
$holidays = $holiday_api->holidays([
'country' => 'AF-PIA',
'year' => '2023',
]);
$Body = @{}
$Body.key = "__YOUR_API_KEY__"
$Body.country = "AF-PIA"
$Body.year = "2023"
$Result = Invoke-RestMethod -Uri $Url -Body $Body
$Result.holidays
import holidayapi
key = '__YOUR_API_KEY__'
hapi = holidayapi.v1(key)
holidays = hapi.holidays({
'country': 'AF-PIA',
'year': '2023',
})
require 'ruby-holidayapi'
key = '__YOUR_API_KEY__'
hapi = HolidayAPI::V1.new(key)
holidays = hapi.holidays({
'country': 'AF-PIA',
'year': '2023',
})