wordpress_api 1.2.0 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));
}
}