dart_airtable 0.1.0 dart_airtable: ^0.1.0 copied to clipboard
Dart library for working with Airtable
example/dart_airtable_example.dart
import 'package:dart_airtable/dart_airtable.dart';
import 'package:dotenv/dotenv.dart' as dotenv;
void main() async {
dotenv.load();
final apiKey = dotenv.env['AIRTABLE_API_KEY'];
final projectBase = dotenv.env['AIRTABLE_PROJECT_BASE'];
final recordName = dotenv.env['AIRTABLE_RECORD_NAME'];
assert(apiKey != null);
assert(projectBase != null);
assert(recordName != null);
var airtable = Airtable(apiKey: apiKey, projectBase: projectBase);
var records = await airtable.getAllRecords(recordName);
print(records);
}