wordpress_api 1.2.0 copy "wordpress_api: ^1.2.0" to clipboard
wordpress_api: ^1.2.0 copied to clipboard

A WordPress REST API client for dart with support for WooCommerce and custom namespaces.

example/wordpress_api_example.dart

import 'package:wordpress_api/wordpress_api.dart';

void main() async {
  final api = WordPressAPI('site.com');
  final res = await api.posts.fetch();

  for (final post in res.data as List<Post>) {
    print(WPUtils.parseHtml(post.content));
  }
}
99
likes
130
pub points
76%
popularity

Publisher

verified publisherdhmgroup.net

A WordPress REST API client for dart with support for WooCommerce and custom namespaces.

Repository (GitHub)
View/report issues

Documentation

API reference

License

BSD-3-Clause (license)

Dependencies

collection, dio, html, logger

More

Packages that depend on wordpress_api