A type-safe Java client for the WordPress REST API with interchangeable HTTP client implementations.
- Type-safe Java API
- Automatic WordPress REST API discovery
- Apache HttpClient implementation
- OkHttp implementation
- Integration-tested against multiple WordPress versions
- Modular architecture
<dependency>
<groupId>io.github.evisentin</groupId>
<artifactId>wp-rest-client-apache</artifactId>
<version>::latest::</version>
</dependency><dependency>
<groupId>io.github.evisentin</groupId>
<artifactId>wp-rest-client-okhttp</artifactId>
<version>::latest::</version>
</dependency>final WpRestClient client =
ApacheWpRestClientBuilder.basicAuthentication(
"https://my-wordpress-site.com",
"admin",
"password"
).build();
final List<WpPost> posts =
client.posts()
.list(WpPaginationQuery.of(1, 10), WpPostQuery.builder().build())
.getItems();Full documentation is available at:
https://evisentin.github.io/wp-rest-client/
Topics covered include:
- Installation
- Authentication
- Getting Started
- Supported APIs
- Architecture
- Contributing
- Developer Setup
WP REST Client is continuously tested against WordPress versions 6.4 through 7.0.
Licensed under the Apache License 2.0.