easistent_client 0.2.4 copy "easistent_client: ^0.2.4" to clipboard
easistent_client: ^0.2.4 copied to clipboard

An eAsistent client package

easistent_client #

An eAsistent client Flutter package

Usage #

// Login with username and password
var login = await EAsClient.userLogin('username', 'password');

// Or login with token
var login = await EAsClient.tokenLogin('refreshToken');

// Create the client
final client = EAsClient();

// If needed refresh the access token
if (login.accessToken.isExpired())
  login = await EAsClient.refreshToken(login);

// Get a timetable
final timetable = await client.getTimeTable(login, DateTime.now());

Shout-out #

A big shout-out to siggsy for helping me understand the API.

2
likes
100
pub points
0%
popularity

Publisher

unverified uploader

An eAsistent client package

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

collection, flutter, html, http

More

Packages that depend on easistent_client