public interface UserWriter extends CanvasWriter<User,UserWriter>
| Modifier and Type | Method and Description |
|---|---|
Optional<User> |
createUser(User user)
Create a new user in Canvas
|
Optional<User> |
createUser(User user,
CreateUserOptions options)
Create a new user in Canvas
|
Optional<User> |
updateUser(User user)
Update user information
|
writeAsCanvasUser, writeAsSisUserOptional<User> createUser(User user) throws InvalidOauthTokenException, IOException
user - user data for creating user accountInvalidOauthTokenException - When the supplied OAuth token is not validIOException - When there is an error communicating with CanvasOptional<User> createUser(User user, CreateUserOptions options) throws InvalidOauthTokenException, IOException
user - user data for creating user accountoptions - the options for the user creationInvalidOauthTokenException - When the supplied OAuth token is not validIOException - When there is an error communicating with CanvasOptional<User> updateUser(User user) throws InvalidOauthTokenException, IOException
user - The user object with updated data to push to CanvasInvalidOauthTokenException - When the supplied OAuth token is not validIOException - When there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.