Comments (2)
Hi @manikmagar,
I made a change in the way the client is built, but I guess the main difference for you would be the following (to use the builder):
- final Wordpress client = ClientFactory.fromConfig(ClientConfig.of(httpsBaseURL, username, password, debug, requestFactory));
+ final Wordpress client = ClientFactory.builder(ClientConfig.of(httpBaseURL, username, password, debug))
+ .withRequestFactory(requestFactory)
+ .build();
from wp-api-v2-client-java.
Hi @johanmynhardt,
This may look like not so simple initialization of client as you need to chain multiple components to create client (the first code to step in this library), but that may be just me :), otherwise this works too.
Thanks for merging requestfactory change 👍
from wp-api-v2-client-java.
Related Issues (20)
- Add support for using a custom base context
- Creating media using ByteArrayResource causes HTTP/400 response. HOT 1
- Allow specifying request context (view | edit | embed) when requesting Media HOT 4
- 401 : rest_cannot_create HOT 1
- Can this be used to add podcast episodes to PowerPress? HOT 6
- Searching for posts by status draft
- Any existed api for wpClient.getAllPosts()? HOT 2
- Any existed api for wpClient.getAllPostsByAuthorNameOrId()?
- Can not create ParsedRestException HOT 4
- Implementing post meta crud HOT 1
- Is the project still maintained? HOT 5
- Some questions about WP API V2 Client
- getPost(id, "embed") does not work
- Latest version (4.14) on start ends with exception HOT 4
- Error: No content to map due to end-of-input HOT 4
- While Creating / Updating post "slug" value gets ignored. HOT 1
- 401 unauthorized error HOT 2
- UTF8 characters - Latin Diacritics are not rendering properly HOT 1
- RestClientException when trying to create a post HOT 2
- Maven repositories are password protected HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wp-api-v2-client-java.