mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
Fixed code example on readme.md
Code example was misleading as `client.init` is not a function, replaced with proper function
This commit is contained in:
parent
043deeed45
commit
523deae94d
1 changed files with 1 additions and 1 deletions
|
|
@ -12,7 +12,7 @@ Docs are very much a WIP, for any help with the library, please join the discord
|
||||||
import { ClasschartsStudentClient } from "classcharts-api";
|
import { ClasschartsStudentClient } from "classcharts-api";
|
||||||
async function main() {
|
async function main() {
|
||||||
const client = new ClasschartsStudentClient("classchartsCode", "01/1/2000");
|
const client = new ClasschartsStudentClient("classchartsCode", "01/1/2000");
|
||||||
await client.init();
|
await client.login();
|
||||||
console.log(
|
console.log(
|
||||||
await client.getBehaviour({
|
await client.getBehaviour({
|
||||||
displayDate: "due_date",
|
displayDate: "due_date",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue