edu.ksu.canvas.interfaces.PageWriter Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of canvas-api Show documentation
Show all versions of canvas-api Show documentation
A native Java library to talk to the Canvas REST API
package edu.ksu.canvas.interfaces;
import java.io.IOException;
import java.util.Optional;
import edu.ksu.canvas.model.Page;
public interface PageWriter extends CanvasWriter {
/**
* Save a course page to Canvas
* @param page The page object to save
* @param courseId The Canvas course ID that this page is to be saved to
* @return The update page after saving
* @throws IOException When there is an error communicating with Canvas
*/
Optional updateCoursePage(Page page, String courseId) throws IOException;
}