1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 03:56:59 +00:00

Merge branch 'jamesatjaminit:main' into main

This commit is contained in:
Zelr 2022-02-06 10:32:48 +00:00 committed by GitHub
commit 6bc856d302
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View file

@ -1,6 +1,6 @@
{
"name": "classcharts-api",
"version": "0.2.2",
"version": "0.2.3",
"description": "",
"repository": {
"url": "https://github.com/jamesatjaminit/classcharts-api"

View file

@ -95,6 +95,13 @@ export class ClasschartsClient {
this.studentId = user.id;
this.studentName = user.name;
}
/**
* @deprecated Use .login() instead
*/
async init(): Promise<void> {
console.warn(".init() is deprecated, please use .login()");
await this.login();
}
/**
* Gets general information about the logged in student
* @returns Student object