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",
|
"name": "classcharts-api",
|
||||||
"version": "0.2.2",
|
"version": "0.2.3",
|
||||||
"description": "",
|
"description": "",
|
||||||
"repository": {
|
"repository": {
|
||||||
"url": "https://github.com/jamesatjaminit/classcharts-api"
|
"url": "https://github.com/jamesatjaminit/classcharts-api"
|
||||||
|
|
|
||||||
|
|
@ -95,6 +95,13 @@ export class ClasschartsClient {
|
||||||
this.studentId = user.id;
|
this.studentId = user.id;
|
||||||
this.studentName = user.name;
|
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
|
* Gets general information about the logged in student
|
||||||
* @returns Student object
|
* @returns Student object
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue