HolidayEventApi 1.1.0

dotnet add package HolidayEventApi --version 1.1.0
NuGet\Install-Package HolidayEventApi -Version 1.1.0
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="HolidayEventApi" Version="1.1.0" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add HolidayEventApi --version 1.1.0
#r "nuget: HolidayEventApi, 1.1.0"
#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 HolidayEventApi as a Cake Addin
#addin nuget:?package=HolidayEventApi&version=1.1.0

// Install HolidayEventApi as a Cake Tool
#tool nuget:?package=HolidayEventApi&version=1.1.0

The Official Holiday and Event API for .NET

Nuget Build Status Code Coverage Funding Status

Industry-leading Holiday and Event API for .NET. Over 5,000 holidays and thousands of descriptions. Trusted by the World’s leading companies. Built by developers for developers since 2011.

Supported .NET Versions

Latest version of the the Holiday and Event API supports all actively-supported .NET and .NET Framework versions.

Authentication

Access to the Holiday and Event API requires an API Key. You can get for one for FREE here, no credit card required! Note that free plans are limited. To access more data and have more requests, a paid plan is required.

Installation

dotnet add package HolidayEventApi

Example

using System;
using System.Threading.Tasks;

namespace HolidayEventApi.Example
{
    class Program
    {
        static async Task Main(string[] args)
        {
            try {
                // Get a FREE API key from https://apilayer.com/marketplace/checkiday-api#pricing
                var client = new HolidayEventApi.Client("<Your API Key Here>");

                // Get Events for a given Date
                var events = await client.GetEvents(
                    // These parameters are the defaults but can be specified:
                    // date: "today",
                    // adult: false,
                    // timezone: "America/Chicago"
                );

                var e = events.Events[0];
                Console.WriteLine("Today is {0}! Find more information at: {1}", e.Name, e.Url);
                Console.WriteLine("Rate limit remaining: {0}/{1} (month).", events.RateLimit.RemainingMonth, events.RateLimit.LimitMonth);

                // Get Event Information
                var eventInfo = await client.GetEventInfo(
                    id: e.Id
                    // These parameters can be specified to calculate the range of eventInfo.Event.Occurrences
                    // start: 2020,
                    // end: 2030
                );

                Console.WriteLine("The Event's hashtags are {0}.", string.Join(", ", eventInfo.Event.Hashtags));

                // Search for Events
                var query = "pizza day";
                var search = await client.Search(
                    query: query
                    // These parameters are the defaults but can be specified:
                    // adult: false
                );

                Console.WriteLine("Found {0} events, including '{1}', that match the query '{2}'.", search.Events.Count, search.Events[0].Name, query);
            } catch (Exception e) {
                Console.WriteLine(e);
            }
        }
    }
}

Publishing Updates

  1. Run nuget pack.
  2. Upload generated files to https://www.nuget.org/packages/manage/upload.
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 was computed. 
.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)
Additional computed target framework(s)
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
1.1.0 232 10/16/2023
1.0.0 212 12/27/2022