Calendarific API client wrapper for .NET projects
Build status | Last commit | Tests | Coverage | Code Smells | LoC |
---|---|---|---|---|---|
Download the latest zip file from the Release page.
Package | Version | Downloads |
---|---|---|
Calendarific |
Implements all features of Calendarific API available at Calendarific API Documentation
- Feature #1
- Feature #2
- Feature #3
- Feature #N
using Calendarific;
using System;
using System.Threading.Tasks;
using System.Collections.Generic;
namespace Example
{
class Program
{
static async Task Main(string[] args)
{
var client = new CalendarificClient("YOUR_API_KEY");
var languages = await client.GetLanguagesAsync();
Console.WriteLine(languages);
var countries = await client.GetCountriesAsync();
Console.WriteLine(countries);
var parameters = new Dictionary<string, string>
{
{ "country", "US" }, { "year", "2023" }
};
var holidays = await client.GetHolidaysAsync(parameters);
Console.WriteLine(holidays);
}
}
}