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
github-actions[bot] 4cfb4128de
Version Packages (#25)
Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
2023-05-02 20:10:21 +01:00
.changeset Version Packages (#25) 2023-05-02 20:10:21 +01:00
.devcontainer style: prettier and eslint 2022-03-12 11:37:28 +00:00
.github/workflows chore: add changesets 2023-04-28 20:58:48 +01:00
.vscode feat: better documentation 2023-04-16 20:47:40 +01:00
src fix: require getLessons options argument (#24) 2023-05-02 19:57:37 +01:00
tests feat: better documentation 2023-04-16 20:47:40 +01:00
.eslintignore fix: eslint config 2022-07-21 15:35:22 +01:00
.eslintrc.js fix: eslint config 2022-07-21 15:35:22 +01:00
.gitignore feat: better documentation 2023-04-16 20:47:40 +01:00
.prettierignore fix: require getLessons options argument (#24) 2023-05-02 19:57:37 +01:00
.prettierrc.json style: prettier 2022-01-31 22:32:29 +00:00
CHANGELOG.md Version Packages (#25) 2023-05-02 20:10:21 +01:00
jest.config.cjs feat: jest testing (#13) 2022-04-10 11:48:24 +01:00
LICENSE chore: add license file 2022-04-10 12:23:37 +01:00
package.json Version Packages (#25) 2023-05-02 20:10:21 +01:00
pnpm-lock.yaml chore(docs): umami 2023-04-29 21:23:06 +01:00
readme.md feat: better documentation 2023-04-16 20:47:40 +01:00
tsconfig.json fix: require getLessons options argument (#24) 2023-05-02 19:57:37 +01:00
typedoc.config.cjs chore(docs): umami 2023-04-29 21:23:06 +01: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 { StudentClient } from "classcharts-api";
async function main() {
  const client = new StudentClient("classchartsCode", "01/1/2000");
  await client.login();
  console.log(
    await client.getBehaviour({
      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();