rpmtw_api_client_flutter

Last updated:

0 purchases

rpmtw_api_client_flutter Image
rpmtw_api_client_flutter Images
Add to Cart

Description:

rpmtw api client flutter

RPMTW API Client (Flutter) #
Install #
flutter pub add rpmtw_api_client_flutter
copied to clipboard
Example #
import 'package:rpmtw_api_client_flutter/rpmtw_api_client_flutter.dart';

void main() async {
RPMTWApiClient.init(); // Initialize RPMTW API Client
RPMTWApiClient apiClient = RPMTWApiClient.instance;
print(apiClient.apiBaseUrl);

// Valid password
PasswordValidatedResult result =
await apiClient.authResource.validPassword('12345');
print(result.message);

// Print hello world
String message = await apiClient.otherResource.helloWorld();
print(message);

// Get client's IP address
String ip = await apiClient.otherResource.getIP();
print(ip);

// Search for mods
ListModelResponse modsResponse =
await apiClient.minecraftResource.search(limit: 5);
print(modsResponse.data);
print(modsResponse.limit);
print(modsResponse.skip);
print(modsResponse.total);
}
copied to clipboard
Widgets #
User Avatar #
import 'package:rpmtw_api_client_flutter/rpmtw_api_client_flutter.dart';

User user = User(...);
user.avatar(fontSize: 20) // fontSize defaults to 18
copied to clipboard
Minecraft Mod Image #
import 'package:rpmtw_api_client_flutter/rpmtw_api_client_flutter.dart';

MinecraftMod mod = MinecraftMod(...);
mod.imageWidget(width: 50, height: 50)
copied to clipboard
Links #
Docs
Other Language #
Kotlin

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.