getBasicInfo method

Future<BasicInfo> getBasicInfo()

Returns a BasicInfo containing name and pictureId.

Implementation

Future<BasicInfo> getBasicInfo() async {
  String profileUrl = buildUrl("SkemaNy.aspx?type=elev&elevid=$studentId");
  var resp = await request<String>(profileUrl);
  BeautifulSoup profileSoup = BeautifulSoup(resp.data as String);
  return extractBasicInfo(profileSoup);
}