Markdown Table Generator API - Dart/Flutter Client

Markdown Table Generator converts structured data into properly formatted markdown tables with customizable column alignment.

pub package License: MIT

This is the Dart/Flutter client for the Markdown Table Generator API.

Installation

Add this to your pubspec.yaml:

dependencies:
  apiverve_markdowntable: ^1.2.5

Then run:

dart pub get
# or for Flutter
flutter pub get

Usage

import 'package:apiverve_markdowntable/apiverve_markdowntable.dart';

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

  try {
    final response = await client.execute({
      'headers': Name,Age,City,
      'rows': John Doe,30,New York,Jane Smith,25,Los Angeles,Bob Johnson,35,Chicago,
      'alignment': 'left'
    });

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

Response

{
  "status": "ok",
  "error": null,
  "data": {
    "markdown": "| Name | Age | City |\n| --- | --- | --- |\n| John Doe | 30 | New York |\n| Jane Smith | 25 | Los Angeles |\n| Bob Johnson | 35 | Chicago |",
    "columnCount": 3,
    "rowCount": 3,
    "cellCount": 12,
    "headers": [
      "Name",
      "Age",
      "City"
    ],
    "alignments": [
      "left",
      "left",
      "left"
    ]
  }
}

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

Libraries

apiverve_markdowntable
Markdown Table Generator API client for Dart/Flutter