wordpress_api 0.1.3+1 wordpress_api: ^0.1.3+1 copied to clipboard
A WordPress API client for dart with support for WooCommerce and custom namespaces.
import 'package:wordpress_api/wordpress_api.dart';
void main() async {
final wp = WordPressAPI('260blog.com');
final posts = (await wp.getAsync('posts'))['data'];
for (final post in posts) {
print(post['title']['rendered']);
}
}