mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 11:58:13 +00:00
Merge branch 'jamesatjaminit:main' into main
This commit is contained in:
commit
6bc856d302
2 changed files with 8 additions and 1 deletions
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "classcharts-api",
|
||||
"version": "0.2.2",
|
||||
"version": "0.2.3",
|
||||
"description": "",
|
||||
"repository": {
|
||||
"url": "https://github.com/jamesatjaminit/classcharts-api"
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue