public interface ExternalToolWriter extends CanvasWriter<ExternalTool,ExternalToolWriter>
| Modifier and Type | Method and Description |
|---|---|
Optional<ExternalTool> |
createExternalToolInAccount(String accountId,
ExternalTool tool)
Create an External tool in the specified Canvas account
|
Optional<ExternalTool> |
createExternalToolInCourse(String courseId,
ExternalTool tool)
Create an External tool in the specified Canvas course
|
Optional<ExternalTool> |
deleteExternalToolInAccount(String accountId,
Integer toolId)
Delete an external tool from an account.
|
Optional<ExternalTool> |
deleteExternalToolInCourse(String courseId,
Integer toolId)
Delete an external tool from a course.
|
Optional<ExternalTool> |
editExternalToolInAccount(String accountId,
ExternalTool tool)
Modify the settings of an external tool associated with an account
|
Optional<ExternalTool> |
editExternalToolInCourse(String courseId,
ExternalTool tool)
Modify the settings of an external tool associated with a course
|
writeAsCanvasUser, writeAsSisUserOptional<ExternalTool> createExternalToolInCourse(String courseId, ExternalTool tool) throws IOException
courseId - Canvas ID or sis_course_id:[SIS ID] for the course to create the tool intool - The tool to create. Must have name, privacy level, consumer key, shared secret and either url or domainIOException - if there is an error communicating with CanvasOptional<ExternalTool> createExternalToolInAccount(String accountId, ExternalTool tool) throws IOException
accountId - Canvas ID or sis_account_id:[SIS ID] for the account to create the tool intool - The tool to create. Must have name, privacy level, consumer key, shared secret and either url or domainIOException - if there is an error communicating with CanvasOptional<ExternalTool> editExternalToolInCourse(String courseId, ExternalTool tool) throws IOException
courseId - Canvas ID or sis_course_id:[SIS ID] for the coursetool - The tool with settings to be modified. Tool ID must be presentIOException - if there is an error communicating with CanvasOptional<ExternalTool> editExternalToolInAccount(String accountId, ExternalTool tool) throws IOException
accountId - Canvas ID or sis_account_id:[SIS ID] for the account that contains the tooltool - The tool with settings to be modified. Tool ID must be presentIOException - if there is an error communicating with CanvasOptional<ExternalTool> deleteExternalToolInCourse(String courseId, Integer toolId) throws IOException
courseId - Canvas course ID or sis_course_id:[SIS ID] for the course to delete the tool fromtoolId - The Canvas ID of the tool to deleteIOException - if there is an error communicating with CanvasOptional<ExternalTool> deleteExternalToolInAccount(String accountId, Integer toolId) throws IOException
accountId - Canvas account ID or sis_account_id:[SIS ID] for the account to delete the tool fromtoolId - Canvas ID of the tool to deleteIOException - if there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.