1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-11 18:59:05 +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
James Cook 0f21e7d744 1.1.0
2022-03-24 19:03:53 +00:00
.devcontainer style: prettier and eslint 2022-03-12 11:37:28 +00:00
build chore: build v1.1.0 2022-03-24 19:02:13 +00:00
docs docs: update docs 2022-03-12 12:10:05 +00:00
src feat: web support (#11) 2022-03-24 18:56:33 +00:00
.eslintignore feat: web support (#11) 2022-03-24 18:56:33 +00:00
.eslintrc.js style: eslint 2022-01-31 22:38:17 +00:00
.gitignore feat: web support (#11) 2022-03-24 18:56:33 +00:00
.prettierignore style: prettier and eslint 2022-03-12 11:37:28 +00:00
.prettierrc.json style: prettier 2022-01-31 22:32:29 +00:00
package-lock.json 1.1.0 2022-03-24 19:03:53 +00:00
package.json 1.1.0 2022-03-24 19:03:53 +00:00
readme.md chore: use npm 2022-03-12 16:14:46 +00:00
tsconfig.json feat: parent support 2022-03-12 11:30:03 +00:00
webpack.config.js fix: build for prod 2022-03-24 18:58:20 +00:00

Classcharts API

A client for the classcharts API

Examples

Docs are very much a WIP, for any help with the library, please join the discord above

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();