Calendarific SDK .NET

Logo

A template repository for .NET API clients projects.

View the Project on GitHub guibranco/calendarific-sdk-dotnet

Calendarific SDK .NET

Calendarific API client wrapper for .NET projects

GitHub license Time tracker

API Client Boilerplate

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 (main branch)

Codacy Badge Codacy Badge

codecov CodeFactor

Maintainability Test Coverage

Quality Gate Status Maintainability Rating

Technical Debt Duplicated Lines (%)

Reliability Rating Security Rating

Bugs Vulnerabilities


Installation

Github Releases

GitHub last release Github All Releases

Download the latest zip file from the Release page.

Nuget package manager

Package Version Downloads
Calendarific Calendarific NuGet Version Calendarific NuGet Downloads

Features

Implements all features of Calendarific API available at Calendarific API Documentation


Usage

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);
        }
    }
}