The WordPress REST API Flutter Package is a convenient and easy-to-use Flutter package that provides functionality to retrieve posts from a WordPress site using the WordPress REST API. It abstracts the API calls and provides a simple interface to fetch and work with WordPress posts in Flutter applications. With this package, developers can easily integrate WordPress content into their Flutter apps, such as displaying blog posts, articles, or any other custom post types from a WordPress site. It handles the HTTP requests, parsing of JSON responses, and provides a model representation of the WordPress posts, making it seamless to consume WordPress content in Flutter projects.

Features

  1. Posts
  2. Comments
  3. Plugins
  4. Authentication
  5. User

Getting started

List prerequisites and provide or point to information on how to start using the package.

Usage

Import the package

import 'package:wordpress_rest_api/wordpress_rest_api';

Initialize baseUrl or you can use dotenv also

const baseUrl = 'https://wordpress-site.com';

Initialize PostService

final PostService postService = PostService(baseUrl: baseUrl);
const like = 'sample';

Libraries

wordpress_rest_api