ummobile_sdk

Creator: coderz1093

Last updated:

0 purchases

ummobile_sdk Image
ummobile_sdk Images
Add to Cart

Description:

ummobile sdk

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.
UMMobileSDK sdk = UMMobileSDK(token: 'YOUR_TOKEN');
copied to clipboard
Auth #
To get a token you can use the static function UMMobileSDK.auth() that returns the API section for the authentication.
// Get token
Token token = await UMMobileSDK
.auth()
.getToken(username: 1234567, password: 'YOUR_PASSWORD');

// Get token for testing with sandbox services
Token sandboxToken = await UMMobileSDK
.auth()
.getToken(
username: 1234567,
password: 'YOUR_PASSWORD',
sandbox: true,
);

// Initialize using the access token
UMMobileSDK sdk = UMMobileSDK(token: token.accessToken);
copied to clipboard
Sections #
The UMMobileSDK contains an attribute for each API section.

user: contains the functions to get the user information.
academic: contains the functions to get the academic information.
financial: contains the functions to get the financial information.
notifications: contains the functions to get the notifications information.
questionnaire: contains the functions to get the questionnaire information.

covid: contains the functions to get the COVID questionnaire information.


catalogue: contains the functions to get the general information.
communication: contains the functions to get the information from Conéctate.

Individual vs Main class #
Each section can be found in an attribute of the main class, but can also be used individually.
// Individual class
UMMobileUser user = UMMobileUser(token: 'YOUT_TOKEN');
await user.getInformation();

// Main class
UMMobileSDK sdk = UMMobileSDK(token: 'YOUR_TOKEN');
await sdk.user.getInformation();
copied to clipboard

License

For personal and professional use. You cannot resell or redistribute these repositories in their original state.

Files In This Product:

Customer Reviews

There are no reviews.