1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00
A Node.js and Deno library for requesting information from the ClassCharts API https://classchartsapi.github.io/classcharts-api-js/
Find a file
2022-03-12 10:40:30 +00:00
.devcontainer chore: add dev container config 2022-02-11 23:36:11 +00:00
docs Updated Docs, made corrects as requested to the js docs comments. 2022-03-10 09:23:40 +00:00
src Added the response value 2022-03-12 10:40:30 +00:00
.eslintignore style: eslint 2022-01-31 22:38:17 +00:00
.eslintrc.js style: eslint 2022-01-31 22:38:17 +00:00
.gitignore Docs need updating 2022-03-08 07:12:56 +00:00
.prettierignore package.json 2022-03-08 12:02:21 +00:00
.prettierrc.json style: prettier 2022-01-31 22:32:29 +00:00
package-lock.json Docs need updating 2022-03-08 07:12:56 +00:00
package.json package.json 2022-03-08 12:01:30 +00:00
pnpm-lock.yaml chore: bump deps 2022-03-07 19:47:34 +00:00
readme.md Change clientstudent to studentclient and the smae for parent, generated docs 2022-03-09 18:02:42 +00:00
tsconfig.json Merge remote-tracking branch 'upstream/main' 2022-03-08 12:09:18 +00:00
yarn.lock Docs need updating 2022-03-08 07:12:56 +00:00

Classcharts API

A very WIP client for the classcharts API

Documentation

Examples

import { ClasschartsStudentClient } from "classcharts-api";
async function main() {
  const client = new ClasschartsStudentClient("classchartsCode", "01/1/2000");
  await client.init();
  console.log(
    await client.getBehaviour({
      displayDate: "due_date",
      fromDate: "20/01/2000",
      toDate: "01/02/2000",
    })
  );
  console.log(await client.getActivity());
  console.log(await client.getStudentInfo());
  console.log(await client.getActivity());
  console.log(await client.getActivity());
}

main();