Awesome
<center>Un-Official ovoid API Wrapper for Flutter</center>
Repository berikut ini merupakan porting dari ovoid untuk Flutter
Method | Result |
---|---|
login2FA | Ok |
login2FAVerify | Ok |
loginSecurityCode | Ok |
getBudget | Ok |
balanceModel | Ok |
logout | Ok |
unreadHistory | Ok |
getWalletTransaction | In Progress |
generateTrxId | In Progress |
transferOvo | In Progress |
Ambil paket
flutter pub get
Jalankan pada folder example
flutter run
Dokumentasi
import 'package:ovoid_flutter/ovoid_flutter.dart';
OvoidFlutter ovoid = new OvoidFlutter();
Login
Langkah 1
final refId = (await ovoid.login2FA('<mobilePhone>'))['refId'];
Langkah 2
final accessToken = (await ovoid.login2FAVerify(refId, '<OTP>', '<mobilePhone>'))['updateAccessToken'];
Langkah 3
final token = (await ovoid.loginSecurityCode('<PINOVO>', accessToken))['token'];
Mendapatkan jumlah notifikasi yang belum terbaca
Mendapatkan jumlah notifikasi akun ovo anda
ovoid.authToken = token;
final total = (await ovoid.unreadHistory())['total'];
Mendapatkan notifikasi
Mendapatkan notifikasi akun ovo anda
ovoid.authToken = token;
final notifikasi = (await ovoid.allNotification())['allNotification'];
Mendapatkan balance
ovoid.authToken = token;
final response = await ovoid.balanceModel();
Logout
ovoid.authToken = token;
await ovoid.logout();
Contoh
login
- masukan nomor handphone
- dialog OTP
- dialog PIN