Interface CommentsSPI
-
@Path("/wp") public interface CommentsSPIDescribes the Wordpress Comments API.- Since:
- 0.0.1
- See Also:
- Comments API Reference
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Commentcreate(String apiVersion, Comment comment)Commentdelete(String apiVersion, int id, boolean force)List<Comment>list(String apiVersion, Context context, Integer page, Integer perPage, String search, Date after, List<Integer> author, List<Integer> authorExclude, String authorEmail, Date before, List<Integer> exclude, List<Integer> include, Integer karma, List<Integer> offset, Order order, CommentOrderBy orderBy, List<Integer> parent, List<Integer> parentExclude, List<Integer> post, CommentStatus status, String type)Commentretrieve(String apiVersion, Integer id, Context context)Commentupdate(String apiVersion, int id, Comment post)
-
-
-
Method Detail
-
list
@GET @Path("/v{apiVersion}/comments") @Produces("application/json") List<Comment> list(@PathParam("apiVersion") String apiVersion, @QueryParam("context") Context context, @QueryParam("page") Integer page, @QueryParam("per_page") Integer perPage, @QueryParam("search") String search, @QueryParam("after") Date after, @QueryParam("author") List<Integer> author, @QueryParam("author_exclude") List<Integer> authorExclude, @QueryParam("author_email") String authorEmail, @QueryParam("before") Date before, @QueryParam("exclude") List<Integer> exclude, @QueryParam("include") List<Integer> include, @QueryParam("karma") Integer karma, @QueryParam("offset") List<Integer> offset, @QueryParam("order") Order order, @QueryParam("orderby") CommentOrderBy orderBy, @QueryParam("parent") List<Integer> parent, @QueryParam("parent_exclude") List<Integer> parentExclude, @QueryParam("post") List<Integer> post, @QueryParam("status") CommentStatus status, @QueryParam("type") String type)
-
retrieve
@GET @Path("/v{apiVersion}/comments/{id}") @Produces("application/json") Comment retrieve(@PathParam("apiVersion") String apiVersion, @PathParam("id") Integer id, @QueryParam("context") Context context)
-
create
@POST @Path("/v{apiVersion}/comments") @Produces("application/json") @Consumes("application/json") Comment create(@PathParam("apiVersion") String apiVersion, Comment comment)
-
update
@POST @Path("/v{apiVersion}/comments/{id}") @Produces("application/json") @Consumes("application/json") Comment update(@PathParam("apiVersion") String apiVersion, @PathParam("id") int id, Comment post)
-
-