jayjah / calendarific_dart

A dart package to retrieve data from calendarific API

Home Page:https://pub.dev/packages/calendarific_dart

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Dart pub

A dart package to retrieve holiday information from calendarific API.

Features

  • retrieve holiday information
  • retrieve language information
  • retrieve country information

Usage

import 'package:calendarific_dart/calendarific_dart.dart';

Future<void> main() async {
  const String apiKey = '';
  final CalendarificApi api = CalendarificApi(apiKey);
  print('Countries: ${await api.getCountries()}');
  print('Languages: ${await api.getLanguages()}');
  print('Holidays: ${await api.getHolidays(countryCode: 'DE', year: '2022', option: const RequestOption.defaultOne())}');
}

See /example or /test for usage information.

Additional information

Calendarific API v2

About

A dart package to retrieve data from calendarific API

https://pub.dev/packages/calendarific_dart

License:MIT License


Languages

Language:Dart 99.8%Language:Shell 0.2%