deno.land / x / gesso@v0.1.2 / examples / courses.ts

نووسراو ببینە
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { Configuration } from "../src/Configuration.ts";import { Courses } from "../src/Courses.ts";
async function getCourses() { const thing = { domain: "https://csufullerton.instructure.com", apiKey: "", };
const config = new Configuration(thing); const courseApi = new Courses(config);
try { return await courseApi.listCourses(); } catch (error) { return error; }}
getCourses().then((t) => console.log(t));
gesso

Version Info

Tagged at
a year ago