ummobile_sdk 0.0.1-beta1 copy "ummobile_sdk: ^0.0.1-beta1" to clipboard
ummobile_sdk: ^0.0.1-beta1 copied to clipboard

outdated

The SDK package used in the UMMobile App to connect with the server.

SDK to connect to the UMMobile API

Getting Started #

This package was made for the UMMobile app.

Initialization #

To initialize a new instance a token is needed.

UMMobileAPI api = UMMobileAPI(token: 'YOUR_TOKEN');

Auth #

To get a token you can use the static function UMMobileAPI.auth() that returns the API section for the authentication.

// Get token
Token token = await UMMobileAPI
  .auth()
  .getToken(username: 1234567, password: 'YOUR_PASSWORD');

// Initialize using the access token
UMMobileAPI api = UMMobileAPI(token: token.accessToken);

Sections #

The UMMobileAPI contains an attribute for each API section.

  • user: contains the functions to get the user information.
1
likes
0
pub points
0%
popularity

Publisher

unverified uploader

The SDK package used in the UMMobile App to connect with the server.

Repository (GitHub)
View/report issues

License

unknown (license)

Dependencies

flutter, ummobile_custom_http

More

Packages that depend on ummobile_sdk