fix(core): update

This commit is contained in:
Philipp Kunz 2022-02-19 13:28:29 +01:00
parent 18835fa5ae
commit c96ccf198c

View File

@ -27,9 +27,28 @@ Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20W
Use TypeScript for best inclass intellisense
```typescript
// this example assumes toplevel await
import * as tink from '@mojoio/tink';
const tinkAccount = new TinkAccount('clientId', 'clientSecret');
const tinkUser = await tinkAccount.createTinkUser('YouOwnUniqueUserId');
const tinkLinkUrl = await tinkUser.getTinkLink();
// present the link to your user to connect their bank accounts to the tink platform.
const tinkProviderConsents = await tinkUser.getProviderConsents();
for (const providerConsent of tinkProviderConsents) {
const bankAccounts = await providerConsent.getBankAccounts();
for (const bankAccount of bankAccounts) {
const transactions = bankAccount.getTransactions();
}
}
```
## Contribution