investec_open_api 0.2.0+1 copy "investec_open_api: ^0.2.0+1" to clipboard
investec_open_api: ^0.2.0+1 copied to clipboard

Dart implementation for Investecs Open API (http://openapi.investec.com)

example/lib/main.dart

import 'package:http/http.dart' as http;
import 'package:investec_open_api/investec_open_api.dart';

void main() async {
  final httpClient = http.Client();

  final api = InvestecOpenAPI(
    clientId: 'API KEY',
    secret: 'SECRET',
    httpClient: httpClient,
  );

  final accounts = await api.getAccounts();

  // This would be all the available accounts.
  print(accounts.data.accounts); // List<AccountModel>

  final accountBalance = await api.getAccountBalance('ACCOUNT_NUMBER');
  print(accountBalance.data); // AccountBalanceModel
}
2
likes
110
pub points
0%
popularity

Publisher

unverified uploader

Dart implementation for Investecs Open API (http://openapi.investec.com)

Repository (GitHub)
View/report issues

Documentation

API reference

License

MIT (LICENSE)

Dependencies

equatable, http, universal_io

More

Packages that depend on investec_open_api