wordpress_client
wordpress_client copied to clipboard
A powerful and easy-to-use WordPress REST API client for Dart & Flutter.
Hi, there, in my case, the Rest API url of Wordpress is https://host.com/wp-json/wc/v3, but when we tried to call ListPostRequest , like the example, got error " https://host.com/posts?page=1&per_page=1&order=asc" , the...
This works fine without context being set to embed. The goal was to reduce the response size as I just needed Title, link, and Featured Image Tested in the Android...
Hi, as mentioned in this issue https://github.com/ArunPrakashG/wordpress_client/issues/46 where it uses `_fields` to decide which properties to get. ### 1. It will nice if you add the ` List? fields` as...
How to choose a different URL for each request? and how to mock differents responses based on url?
It should also be possible to pass it as a parameter in each request to make mocks based on the URL possible if the client is shared as a dependency....
There are several cases in which it happens, I will show you 2 Case 1: for invalid port ```dart try { final client = WordpressClient(baseUrl: Uri.parse('https://localhost:686868')) ..initialize(); final request =...
When I call for json, I sometimes stumble on a problem when I get out of the pages range. I set page variable dynamically for paging capability in my app....
Hi, I didn't find exactly in the documentation the query params part... I get error: `Error fetching data: type 'Null' is not a subtype of type 'int'` when I do...