skyscrapeapi 4.1.1+1 copy "skyscrapeapi: ^4.1.1+1" to clipboard
skyscrapeapi: ^4.1.1+1 copied to clipboard

SkyMobile API is the API that was taken from the original SkyMobile app. SkyMobile API allows easy Skyward access for developers.

example/main.dart

import 'dart:io';

import 'package:skyscrapeapi/sky_core.dart';

void main() async {
  print('start');
  final skyward =
      "https://cors-anywhere.herokuapp.com/https://skyward-fbprod.iscorp.com/scripts/wsisa.dll/WService=wsedufortbendtx/seplog01.w";
  var file = File('test/testCredentials.txt');
  var contents;
  var terms;
  var gradebook;
  User person;

  if (await file.exists()) {
    contents = await file.readAsString();
    List split = contents.toString().split('\n');

    person = await SkyCore.login(split[0], split[1], skyward);
  }

  try {
    gradebook = await person.getGradebook();
  } catch (e) {
    print('Should not fail: ' + e.toString());
    throw SkywardError('SHOULD SUCCEED');
  }

  try {
    List<AssignmentProperty> props = (await person
        .getAssignmentDetailsFrom(gradebook[0].quickAssignments[0]));
    print(props);
  } catch (e) {
    print('Should succeed: ${e.toString()}');
    throw SkywardError('SHOULD SUCCEED');
  }

  try {
    print(await person.getStudentProfile());
  } catch (e) {
    print('Should succeed: ${e.toString()}');
    throw SkywardError('SHOULD SUCCEED');
  }

  print(terms);
  print(gradebook);
  print(await person.getHistory());
}
2
likes
40
points
74
downloads

Publisher

verified publisherclearhall.dev

Weekly Downloads

SkyMobile API is the API that was taken from the original SkyMobile app. SkyMobile API allows easy Skyward access for developers.

Repository (GitHub)
View/report issues

License

AGPL-3.0 (license)

Dependencies

html, http

More

Packages that depend on skyscrapeapi