GuiStracini.HolidayAPI 3.3.574

dotnet add package GuiStracini.HolidayAPI --version 3.3.574
NuGet\Install-Package GuiStracini.HolidayAPI -Version 3.3.574
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="GuiStracini.HolidayAPI" Version="3.3.574" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add GuiStracini.HolidayAPI --version 3.3.574
#r "nuget: GuiStracini.HolidayAPI, 3.3.574"
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install GuiStracini.HolidayAPI as a Cake Addin
#addin nuget:?package=GuiStracini.HolidayAPI&version=3.3.574

// Install GuiStracini.HolidayAPI as a Cake Tool
#tool nuget:?package=GuiStracini.HolidayAPI&version=3.3.574

GuiStracini.HolidayAPI

A client wrapper of the Holiday API for .NET projects (both Core & Framewok).

GitHub license time tracker

HolidayAPI

CI/CD

Build status Last commit Tests Coverage Code Smells LoC
Build status GitHub last commit AppVeyor tests (branch) Coverage Code Smells Lines of Code

Code Quality

Codacy Badge Codacy Badge

Codecov CodeFactor

Maintainability Test Coverage

Quality Gate Status Maintainability Rating

Technical Debt Duplicated Lines (%)

Reliability Rating Security Rating

Bugs Vulnerabilities

DeepSource

Installation

Github Releases

GitHub last release Github All Releases

Download the latest zip file from the Release page.

Nuget package manager

Package Version Downloads
GuiStracini.HolidayAPI GuiStracini.HolidayAPI NuGet Version GuiStracini.HolidayAPI NuGet Downloads

Features

Implements all features of Holiday API available at HolidayAPI docs

  • Get holidays list (country code and year required)
  • Get filtered holidays (day, month, public, upcoming, previous, subdivisions, switch response language, search parameter)
  • Get countries list
  • Get filtered countries (search parameter)
  • Get languages list
  • Get filtered languages (search parameter)
  • Get workday
  • Get workdays

Usage

Get your API key at Holiday API site.


//Http Client - you should use your DI container for it
var client = HttpClientFactory.Create();
client.BaseAddress = new Uri("https://holidayapi.com/");
client.DefaultRequestHeaders.ExpectContinue = false;
client.DefaultRequestHeaders.Accept.Clear();
client.DefaultRequestHeaders.Accept.Add(new MediaTypeWithQualityHeaderValue("application/json"));

//Use your API key
var myKey = "00000000-0000-0000-0000-000000000000";

//Instantiate a holidayApi client with your API key (GUID/UUID)
var holidayClient = new HolidayApiClient(myKey, client);

//Getting all holidays in Brazil for the year 2019:
var holidays = await holidayClient.GetHolidaysAsync("BR", 2019, CancellationToken.None);
foreach(var holiday in holidays)
    Console.WriteLine("Holiday: {0} | Date: {1}", holiday.Name, holiday.Date);

//Getting all available countries
var countries = await holidayClient.GetCountriesAsync(CancellationToken.None);
foreach(var country in countries)
    Console.WriteLine("Country: {0} | Code: {1} | Flag: {2}", country.Name, country.Code, country.Flag);

//Getting all available languages
var languages = await holidayClient.GetLanguagesAsync(CancellationToken.None);
foreach(var language in languages)
    Console.WriteLine("Code: {0} | Name: {1}", language.Code, language.Name);

//Getting workday
var workday = await holidayClient.GetWorkdayAsync("BR", "2019-06-23", 10, CancellationToken.None);
Console.WriteLine("Workday: {0}", workday.Date);

//Getting workdays between two dates
var workdays = await holidayClient.GetWorkdaysAsync("BR", "2021-01-01", "2021-06-01", CancellationToken.None);
Console.WriteLine("Workdays: {0}". workdays.Days);

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  net7.0-android was computed.  net7.0-ios was computed.  net7.0-maccatalyst was computed.  net7.0-macos was computed.  net7.0-tvos was computed.  net7.0-windows was computed.  net8.0 was computed.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed. 
.NET Core netcoreapp2.0 was computed.  netcoreapp2.1 was computed.  netcoreapp2.2 was computed.  netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.0 is compatible.  netstandard2.1 is compatible. 
.NET Framework net461 was computed.  net462 was computed.  net463 was computed.  net47 was computed.  net471 was computed.  net472 was computed.  net48 was computed.  net481 was computed. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen40 was computed.  tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
3.3.574 240 5/28/2024
3.3.571 64 5/28/2024
3.3.566 66 5/28/2024
3.3.559 62 5/19/2024
3.3.553 80 4/29/2024
3.3.550 71 4/29/2024
3.3.545 73 4/29/2024
3.3.538 101 4/22/2024
3.3.535 79 4/22/2024
3.3.530 96 4/15/2024
3.3.527 88 4/15/2024
3.3.522 90 4/8/2024
3.3.519 105 3/18/2024
3.3.516 86 3/18/2024
3.3.511 91 2/26/2024
3.3.508 75 2/26/2024
3.3.503 77 2/26/2024
3.3.499 104 2/19/2024
3.3.494 83 2/19/2024
3.3.487 98 2/14/2024
3.3.484 76 2/14/2024
3.3.478 83 2/12/2024
3.3.475 121 1/30/2024
3.3.470 80 1/29/2024
3.3.464 415 1/22/2024
3.3.461 79 1/22/2024
3.3.456 115 1/16/2024
3.3.453 86 1/16/2024
3.3.448 125 1/8/2024
3.3.445 129 12/25/2023
3.3.442 98 12/25/2023
3.3.437 125 12/18/2023
3.3.422 127 12/14/2023
3.3.417 146 12/11/2023
3.3.414 106 12/11/2023
3.3.409 129 12/11/2023
3.3.406 119 12/11/2023
3.3.397 145 12/4/2023
3.3.394 140 11/27/2023
3.3.391 163 11/21/2023
3.3.388 133 11/21/2023
3.3.383 128 11/20/2023
3.3.376 126 11/20/2023
3.3.367 121 11/20/2023
3.3.356 133 11/14/2023
3.3.353 124 11/14/2023
3.3.348 119 11/14/2023
3.3.339 109 11/10/2023
3.3.332 127 11/7/2023
3.3.328 107 11/6/2023
3.3.325 171 10/25/2023
3.3.322 139 10/25/2023
3.3.315 136 10/25/2023
3.3.307 120 10/23/2023
3.3.304 132 10/18/2023
3.3.301 119 10/18/2023
3.3.292 123 10/18/2023
3.3.283 175 9/19/2023
3.3.280 120 9/19/2023
3.3.271 142 9/13/2023
3.3.268 171 9/4/2023
3.3.265 582 8/24/2023
3.3.262 189 8/9/2023
3.3.259 196 7/29/2023
3.3.257 145 7/29/2023
3.3.249 166 7/19/2023
3.3.246 165 7/17/2023
3.3.243 172 7/12/2023
3.3.240 140 7/12/2023
3.3.231 252 6/15/2023
3.3.228 161 6/7/2023
3.3.224 244 6/5/2023
3.3.219 338 5/24/2023
3.3.216 174 5/24/2023
3.3.211 182 5/23/2023
3.3.200 192 5/4/2023
3.3.199 454 4/21/2023
3.3.198 225 4/20/2023
3.3.194 213 4/9/2023
3.3.186 214 4/4/2023
3.3.182 227 4/3/2023
3.3.178 214 4/3/2023
3.3.169 245 3/26/2023
3.3.166 275 3/8/2023
3.3.162 269 2/27/2023
3.3.159 339 1/28/2023
3.3.156 319 1/28/2023
3.3.151 328 1/28/2023
3.3.144 321 1/28/2023
3.3.135 313 1/28/2023
3.3.124 344 1/28/2023
3.3.113 331 1/28/2023
3.3.98 336 1/28/2023
3.3.81 342 1/28/2023
3.3.56 321 1/28/2023
3.3.53 323 1/28/2023
3.3.25 315 1/28/2023
3.3.4 314 1/28/2023
3.2.86 6,859 3/10/2022
3.2.59 458 3/2/2022
3.2.52 474 3/2/2022
3.2.43 1,021 1/5/2022
3.2.35 291 1/5/2022
3.2.10 665 6/21/2021
3.1.102 906 6/23/2020
3.0.90 556 4/19/2020
3.0.83 550 4/19/2020
3.0.72 530 4/18/2020
3.0.71 548 4/18/2020
3.0.69 519 4/18/2020
3.0.68 530 4/7/2020
3.0.60 566 3/30/2020
3.0.52 523 3/30/2020
3.0.45 584 3/30/2020
2.0.34 652 1/5/2020
2.0.27 580 1/5/2020
2.0.24 582 1/5/2020
1.0.8 634 1/4/2020
1.0.7 612 1/4/2020
1.0.6 912 8/18/2018
1.0.5 863 8/18/2018
1.0.4 869 8/17/2018
1.0.3 943 12/18/2017
1.0.2 924 12/18/2017
1.0.1 918 12/18/2017