Skip to main content
Module

x/gesso/src/mod.ts>NotificationPreferences

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

Constructors

new
NotificationPreferences(config: Configuration)

Methods

getPreference(
user_id: string,
communication_channel_id: string,
notification: string,
body?: unknown,
): Promise<NotificationPreference>
listOfPreferenceCategories(
user_id: string,
communication_channel_id: string,
body?: unknown,
): Promise<Scope>
listPreferences(
user_id: string,
communication_channel_id: string,
body?: unknown,
): Promise<NotificationPreference[]>
updateMultiplePreferences(
communication_channel_id: string,
params?: UpdateMultiplePreferencesParams,
body?: unknown,
): Promise<Scope>
updatePreference(
communication_channel_id: string,
notification: string,
params?: UpdatePreferenceParams,
body?: unknown,
): Promise<Scope>
updatePreferencesByCategory(
communication_channel_id: string,
category: string,
params?: UpdatePreferencesByCategoryParams,
body?: unknown,
): Promise<Scope>