mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 03:56:59 +00:00
fix: specify dob as form data for getStudentCode (#46)
This commit is contained in:
parent
86afa2a01e
commit
f0861f287d
1 changed files with 4 additions and 3 deletions
|
|
@ -111,9 +111,10 @@ export class StudentClient extends BaseClient {
|
|||
): Promise<GetStudentCodeResponse> {
|
||||
const data = await this.makeAuthedRequest(`${this.API_BASE}/getcode`, {
|
||||
method: "POST",
|
||||
body: JSON.stringify({
|
||||
date: options.dateOfBirth,
|
||||
}),
|
||||
body: `date=${options.dateOfBirth}`,
|
||||
headers: {
|
||||
"content-type": "application/x-www-form-urlencoded",
|
||||
},
|
||||
});
|
||||
return data;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue