com.afrozaar.wordpress.wpapi.v2.api.Medias Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of wp-api-v2-client-java Show documentation
Show all versions of wp-api-v2-client-java Show documentation
A Java client implementation to the WordPress WP-API v2 plugin.
package com.afrozaar.wordpress.wpapi.v2.api;
import com.afrozaar.wordpress.wpapi.v2.exception.WpApiParsedException;
import com.afrozaar.wordpress.wpapi.v2.model.Media;
import com.afrozaar.wordpress.wpapi.v2.model.Post;
import org.springframework.core.io.Resource;
import java.util.List;
public interface Medias {
Media createMedia(Media media, Resource resource) throws WpApiParsedException;
List getMedia();
Media getMedia(Long id);
Media updateMedia(Media media);
boolean deleteMedia(Media media);
boolean deleteMedia(Media media, boolean force);
Post setPostFeaturedImage(Long postId, Media media);
List getPostMedias(Long postId);
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy