Compare commits

..

2 Commits

Author SHA1 Message Date
031d140a44 1.0.11 2022-02-19 13:28:29 +01:00
c96ccf198c fix(core): update 2022-02-19 13:28:29 +01:00
3 changed files with 22 additions and 3 deletions

4
package-lock.json generated
View File

@ -1,12 +1,12 @@
{ {
"name": "@mojoio/tink", "name": "@mojoio/tink",
"version": "1.0.10", "version": "1.0.11",
"lockfileVersion": 2, "lockfileVersion": 2,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "@mojoio/tink", "name": "@mojoio/tink",
"version": "1.0.10", "version": "1.0.11",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@pushrocks/smartrequest": "^1.1.56" "@pushrocks/smartrequest": "^1.1.56"

View File

@ -1,6 +1,6 @@
{ {
"name": "@mojoio/tink", "name": "@mojoio/tink",
"version": "1.0.10", "version": "1.0.11",
"private": false, "private": false,
"description": "an unofficial api abstraction for tink.com", "description": "an unofficial api abstraction for tink.com",
"main": "dist_ts/index.js", "main": "dist_ts/index.js",

View File

@ -27,9 +27,28 @@ Platform support | [![Supports Windows 10](https://badgen.net/badge/supports%20W
Use TypeScript for best inclass intellisense Use TypeScript for best inclass intellisense
```typescript ```typescript
// this example assumes toplevel await
import * as tink from '@mojoio/tink'; 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 ## Contribution