BR Content - Flutter SDK

Bloomreach Content Flutter SDK - Features a Page Delivery API Client & an SDK to render data from the API the view.

This Dart package is automatically generated by the OpenAPI Generator project:

  • API version: 1.0
  • Build package: org.openapitools.codegen.languages.DartClientCodegen

Requirements

Dart 2.0 or later

Getting Started with the API Client

Please follow the installation procedure and then run the following:

import 'package:brcontent/api.dart';

final instance =
PageApi(ApiClient(basePath: 'https://sandbox-sales02.bloomreach.io'));

final path = path_example; // String | 
final channelId = channelId_example; // String | 

try {
    final Page page = await instance.getPage(channelId, path);
    print(page);

    Container container = page.getComponentByPath('container') ;

    var components = container.getComponents(page);

    components.forEach((containerItem) {
      print(containerItem!.name);
      if (containerItem.hasContent()) {
        print(containerItem.getContent(page)?.data);
        print('-----------');
      }
    });
} catch (e) {
    print('Exception when calling PageApi->getPage: $e\n');
}

Getting Started with the Rendering SDK

..

Documentation for API Endpoints

All URIs are relative to https://<account_name>.bloomreach.io

Class Method HTTP request Description
PageApi getPage GET /delivery/site/v1/channels/{channel_id}/pages/{path} Get Page by path

Documentation For Models

Documentation For Authorization

All endpoints do not require authorization.

Author

kenan.salic@bloomreach.com

Libraries

model/fromjson
api