public void configure() {
final WordpressConfiguration configuration = new WordpressConfiguration();
final WordpressComponentConfiguration component = new WordpressComponentConfiguration();
configuration.setApiVersion("2");
configuration.setUrl("http://yoursite.com/wp-json/");
component.setConfiguration(configuration);
getContext().addComponent("wordpress", component);
from("wordpress:post?id=1")
.to("mock:result");
}
public void configure() {
final WordpressConfiguration configuration = new WordpressConfiguration();
final WordpressComponentConfiguration component = new WordpressComponentConfiguration();
configuration.setApiVersion("2");
configuration.setUrl("http://yoursite.com/wp-json/");
component.setConfiguration(configuration);
getContext().addComponent("wordpress", component);
from("wordpress:post?id=1")
.to("mock:result");
}
Copy to ClipboardCopied!Toggle word wrapToggle overflow