skyscrapeapi 3.0.0+26 copy "skyscrapeapi: ^3.0.0+26" to clipboard
skyscrapeapi: ^3.0.0+26 copied to clipboard

outdated

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 'package:skyscrapeapi/data_types.dart';
import 'package:skyscrapeapi/sky_core.dart';
//import 'dart:io';

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 {
    print('1');
    person = await SkyCore.login('602353', '00937200', skyward, ignoreExceptions: false);
    print('1a');
    gradebook = await person.getGradebook();
    print('1b');
  } catch (e) {
    print('Should not fail: ' + e.toString());
    throw SkywardError('SHOULD SUCCEED');
  }

  try {
    print('2');
    List<AssignmentProperty> props =
        (await person.getAssignmentDetailsFrom(gradebook.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());
  print('done');
}
2
likes
0
pub points
0%
popularity

Publisher

verified publisherclearhall.dev

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

unknown (LICENSE)

Dependencies

html, http

More

Packages that depend on skyscrapeapi