public interface AccountReader extends CanvasReader<Account,AccountReader>
| Modifier and Type | Method and Description |
|---|---|
Optional<Account> |
getSingleAccount(String accountId)
Retrieve information on an individual account
|
List<Account> |
getSubAccounts(GetSubAccountsOptions options)
Return a list of sub-accounts to the given account
|
List<Account> |
listAccounts(ListAccountOptions options)
Return a list of accounts that the current user can view or manage.
|
List<Account> |
listAccountsForCourseAdmins()
List accounts that the current user can view through their admin course enrollments
|
readAsCanvasUser, readAsSisUser, withCallbackOptional<Account> getSingleAccount(String accountId) throws IOException
accountId - accountId Required. Account's id or sis_account_idIOException - When there is an error communicating with CanvasList<Account> listAccounts(ListAccountOptions options) throws IOException
options - Object encapsulating parameters to the list accounts API callIOException - When there is an error communicating with CanvasList<Account> getSubAccounts(GetSubAccountsOptions options) throws IOException
options - options object encapsulating parameters to the sub-accounts API callIOException - When there is an error communicating with CanvasList<Account> listAccountsForCourseAdmins() throws IOException
IOException - When there is an error communicating with CanvasCopyright © 2021 Kansas State University, Office of Mediated Education. All rights reserved.