jayjah / calendarific_dart

A dart package to retrieve data from calendarific API
https://pub.dev/packages/calendarific_dart
MIT License
1 stars 0 forks source link

[Feature] add additional path parameters #1

Closed jayjah closed 2 years ago

jayjah commented 2 years ago

Calendarific API has additional path parameters to set. See the following table for reference:

day Limits the number of holidays to a particular day. Must be passed as the numeric value of the day [1..31].
month Limits the number of holidays to a particular month. Must be passed as the numeric value of the month [1..12].
location We support multiple counties, states and regions for all the countries we support. This optional parameter allows you to limit the holidays to a particular state or region. The value of field is iso-3166 format of the state. View a list of supported countries and states. An example is, for New York state in the United States, it would be us-ny
type We support multiple types of holidays and observances. This parameter allows users to return only a particular type of holiday or event. By default, the API returns all holidays. Below is the list of holiday types supported by the API and this is how to reference them.national - Returns public, federal and bank holidayslocal - Returns local, regional and state holidaysreligious - Return religious holidays: buddhism, christian, hinduism, muslim, etc observance - Observance, Seasons, Times

Calendarific docs

jayjah commented 2 years ago

merged on baster - closing this one