fix(core): update
This commit is contained in:
parent
18835fa5ae
commit
c96ccf198c
19
readme.md
19
readme.md
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user