webflow_client 0.1.8 copy "webflow_client: ^0.1.8" to clipboard
webflow_client: ^0.1.8 copied to clipboard

Webflow API v2 client for dart and flutter, uses light weight http package to make requests.

example/webflow_client_example.dart

import 'package:webflow_client/webflow_client.dart';

void main() {
  var webflowClient = WebflowClient('siteToken');

  // Access the APIs
  var sitesApi = webflowClient.sites;
  var pagesApi = webflowClient.pages;
  var assetsApi = webflowClient.assets;
  var cmsApi = webflowClient.cms;

  // Use the APIs
  sitesApi.listSites().then((site) {
    print(site);
  });

  pagesApi.listPages('siteId').then((pages) {
    print(pages);
  });

  assetsApi.listAssets('siteId').then((assets) {
    print(assets);
  });

  cmsApi.listCollections('siteId').then((collections) {
    print(collections);
  });

  cmsApi.listCollectionItems('collectionId').then((items) {
    print(items);
  });
}
4
likes
150
points
66
downloads

Publisher

unverified uploader

Weekly Downloads

Webflow API v2 client for dart and flutter, uses light weight http package to make requests.

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (license)

Dependencies

http, json_annotation

More

Packages that depend on webflow_client