Skip to main content

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

Fibonacci Generator computes Fibonacci numbers and sequences based on a target count or ceiling value. Each response provides the generated sequence starting from any position, total sum, step ratios, [...]

Fibonacci Generator API - Dart/Flutter Client #

Fibonacci Generator computes Fibonacci numbers and sequences based on a target count or ceiling value. Each response provides the generated sequence starting from any position, total sum, step ratios, and a golden ratio approximation.

pub package License: MIT

This is the Dart/Flutter client for the Fibonacci Generator API.

Installation #

Add this to your pubspec.yaml:

dependencies:
  apiverve_fibonaccigenerator: ^1.2.3

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage #

import 'package:apiverve_fibonaccigenerator/apiverve_fibonaccigenerator.dart';

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

  try {
    final response = await client.execute({
      'count': 10,
      'startfrom': 0
    });

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

Response #

{
  "status": "ok",
  "error": null,
  "data": {
    "sequence": [
      0,
      1,
      1,
      2,
      3,
      5,
      8,
      13,
      21,
      34
    ],
    "count": 10,
    "start_from": 0,
    "first_value": 0,
    "last_value": 34,
    "sum": 88,
    "ratios": [
      1.666667,
      1.6,
      1.625,
      1.615385,
      1.619048
    ],
    "golden_ratio_approximation": 1.619048
  }
}

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
130
points
--
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

Fibonacci Generator computes Fibonacci numbers and sequences based on a target count or ceiling value. Each response provides the generated sequence starting from any position, total sum, step ratios, and a golden ratio approximation.

Homepage
Repository (GitHub)
View/report issues
Contributing

License

MIT (license)

Dependencies

http, http_parser

More

Packages that depend on apiverve_fibonaccigenerator