contentchef_dart 1.0.0 contentchef_dart: ^1.0.0 copied to clipboard
The headless CMS designed to accelerate the success of any digital experience. This is the client for any dart/flutter applications.
example/contentchef_dart_example.dart
import 'dart:convert';
import 'package:contentchef_dart/contentchef_dart.dart';
void main() async {
var configuration = Configuration(spaceId: 'yours-spaceId');
var contentChef = ContentChef(configuration: configuration);
try {
var result = await contentChef
.getPreviewChannel(apiKey: 'test-api-key', status: PublishingStatus.stage, publishingChannel: 'your-channel-mnemonicId')
.searchContents(filters: SearchContentsFilters(skip: 0, take: 10));
print(jsonEncode(result));
} catch (e) {
print(e);
}
}