contentchef_dart 1.0.2 copy "contentchef_dart: ^1.0.2" to clipboard
contentchef_dart: ^1.0.2 copied to clipboard

outdated

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, contentDefinition: ['top-site']));
      print(jsonEncode(result));
  } catch (e) {
    print(e);
  }
}
5
likes
0
points
46
downloads

Publisher

verified publishercontentchef.io

Weekly Downloads

The headless CMS designed to accelerate the success of any digital experience. This is the client for any dart/flutter applications.

Homepage
Repository (GitHub)
View/report issues

Documentation

Documentation

License

unknown (license)

Dependencies

http, meta

More

Packages that depend on contentchef_dart