Skip to main content

apiverve_chinesezodiac 1.2.3 copy "apiverve_chinesezodiac: ^1.2.3" to clipboard
apiverve_chinesezodiac: ^1.2.3 copied to clipboard

Chinese Zodiac returns the zodiac animal, element, and characteristics for any birth date. Accurately accounts for the Chinese lunar calendar - the zodiac year starts on Chinese New Year, not January 1st.

Chinese Zodiac API - Dart/Flutter Client #

Chinese Zodiac returns the zodiac animal, element, and characteristics for any birth date. Accurately accounts for the Chinese lunar calendar - the zodiac year starts on Chinese New Year, not January 1st.

pub package License: MIT

This is the Dart/Flutter client for the Chinese Zodiac API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_chinesezodiac: ^1.2.3

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_chinesezodiac/apiverve_chinesezodiac.dart';

void main() async {
  final client = ChinesezodiacClient('YOUR_API_KEY');

  try {
    final response = await client.execute({
      'date': '1990-01-15'
    });

    print('Status: ${response.status}');
    print('Data: ${response.data}');
  } catch (e) {
    print('Error: $e');
  }
}

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "date": "1990-01-15",
    "zodiacYear": 1989,
    "animal": "Snake",
    "animalChinese": "蛇",
    "element": "Earth",
    "elementChinese": "土",
    "elementColor": "Yellow/Brown",
    "polarity": "Yin",
    "traits": [
      "Enigmatic",
      "Intelligent",
      "Wise",
      "Decisive"
    ],
    "sexagenaryCyclePosition": 6,
    "fullName": "Earth Snake",
    "chineseNewYear": "1990-01-27"
  }
}

API Reference #

Authentication #

All requests require an API key. Get yours at apiverve.com.

License #

MIT License - see LICENSE for details.


Built with Dart for APIVerve

0
likes
120
points
108
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Chinese Zodiac returns the zodiac animal, element, and characteristics for any birth date. Accurately accounts for the Chinese lunar calendar - the zodiac year starts on Chinese New Year, not January 1st.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_chinesezodiac