Skip to main content
Module

x/gesso/src/mod.ts>Accounts

A TypeScript API client for Canvas LMS
Latest
class Accounts
extends BaseApi
import { Accounts } from "https://deno.land/x/gesso@v0.1.2/src/mod.ts";

Constructors

new
Accounts(config: Configuration)

Methods

createNewSubaccount(
account_id: string,
params?: CreateNewSubaccountParams,
body?: unknown,
): Promise<Account>
deleteSubaccount(
account_id: string,
id: string,
body?: unknown,
): Promise<Account>
deleteUserFromTheRootAccount(
account_id: string,
user_id: string,
body?: unknown,
): Promise<User>
getAccountsThatAdminsCanManage(body?: unknown): Promise<Account[]>
getSingleAccount(id: string, body?: unknown): Promise<Account>
getTheSubaccountsOfAnAccount(
account_id: string,
params?: GetTheSubaccountsOfAnAccountParams,
body?: unknown,
): Promise<Account[]>
getTheTermsOfService(account_id: string, body?: unknown): Promise<TermsOfService>
listAccounts(params?: ListAccountsParams, body?: unknown): Promise<Account[]>
listAccountsForCourseAdmins(body?: unknown): Promise<Account[]>
listActiveCoursesInAnAccount(
account_id: string,
params?: ListActiveCoursesInAnAccountParams,
body?: unknown,
): Promise<Course[]>
permissions(
account_id: string,
params?: PermissionsParams,
body?: unknown,
): Promise<Course>
settings(account_id: string, body?: unknown): Promise<Account>
updateAnAccount(
id: string,
params?: UpdateAnAccountParams,
body?: unknown,
): Promise<Account>