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
James Cook 0eb5d1dae4
feat: Parent support (#7)
Added Parent support
2022-03-12 11:04:44 +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 feat: Parent support (#7) 2022-03-12 11:04:44 +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 API client for Classcharts

Examples

Documentation is very much WIP, better documentation is planned :D

For any help with the lib, please join the discord!

import { ClasschartsStudentClient } from "classcharts-api";
async function main() {
  const client = new ClasschartsStudentClient("classchartsCode", "01/1/2000");
  await client.init();
  console.log(
    await client.getBehaviour({
      // Note: dates are in the American format
      from: "2020-12-23",
      to: "2022-03-09",
    })
  );
  console.log(await client.getActivity());
  console.log(await client.getStudentInfo());
  console.log(await client.getActivity());
  console.log(await client.getActivity());
}

main();