1
0
Fork 0
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:
Tyler 2022-09-05 19:40:07 +01:00
parent 043deeed45
commit 523deae94d

View file

@ -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",