wordpress_api 0.2.1 wordpress_api: ^0.2.1 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';
Future<void> main() async {
final wp = WordPressAPI('dart-wp.dhmgroup.dev');
final posts = await wp.getPosts();
for (final post in posts) {
// ignore: avoid_print
print(post.meta);
}
}