This client library enables client applications to connect to Investec's Open Banking aligned OpenAPIs. For more information, refer to https://developer.investec.com/programmable-banking/#open-api/.
Register and configure the service with the AddInvestecOpenBankingClientService
extension method.
.AddInvestecOpenBankingClientService(options =>
{
options.ClientId = "YourClientId";
options.ClientSecret = "YourClientSecret";
})
Inject or resolve the client service.
var investecOpenBankingClient = serviceProvider.GetService<IInvestecOpenBankingClient>();
Interact with the required endpoints.
// Get all accounts from Investec API
var accounts = await _investecOpenBankingClient.GetAccounts();
// Get the accountId for the first account that is a Private Bank Account
var accountId = accounts.data.accounts.FirstOrDefault(f =>
f.product == AccountsResponseModel.AccountProducts.PrivateBankAccount)?.accountId;
// Get all transactions for the last 180 days from Investec API
var latestTransactions = await _investecOpenBankingClient.GetAccountTransactions(accountId);
Install via Nuget.org
Install-Package Lionelcc.Investec.OpenBanking
NuGet Stable | NuGet Pre-release | Downloads |
---|---|---|
- Documentation
- Samples