Compare commits

...

12 Commits

Author SHA1 Message Date
0f80623111 1.0.16 2022-02-19 13:47:41 +01:00
6c02861a79 fix(core): update 2022-02-19 13:47:40 +01:00
a25e758faf 1.0.15 2022-02-19 13:46:05 +01:00
14f2ba0692 fix(core): update 2022-02-19 13:46:05 +01:00
0c391c1fd1 1.0.14 2022-02-19 13:32:57 +01:00
0c9decce3e fix(core): update 2022-02-19 13:32:57 +01:00
edb3160f35 1.0.13 2022-02-19 13:30:47 +01:00
0eb51cf3c5 fix(core): update 2022-02-19 13:30:46 +01:00
80373424b4 1.0.12 2022-02-19 13:29:08 +01:00
d108baf672 fix(core): update 2022-02-19 13:29:08 +01:00
031d140a44 1.0.11 2022-02-19 13:28:29 +01:00
c96ccf198c fix(core): update 2022-02-19 13:28:29 +01:00
5 changed files with 27 additions and 6 deletions

4
package-lock.json generated
View File

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

View File

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

View File

@ -27,9 +27,31 @@ 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('<YourOwnUniqueUserId/externalUserId>');
const tinkLinkUrl = await tinkUser.getTinkLink('<marketCode like DE>');
// 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();
}
}
// additional stuff
const existingTinkUser = await tinkAccount.getUser('<YourOwnUniqueUserId/externalUserId>')
await existingTinkuser.delete(); // delete the user on the tink platform
```
## Contribution

View File

@ -1,2 +1,3 @@
export * from './tink.classes.tinkaccount';
export * from './tink.classes.tinkuser';
export * from './tink.classes.tinkuser';
export * from './tink.classes.tinkproviderconsent';

View File

@ -80,8 +80,6 @@ export class TinkUser {
public tinkUserId: string;
public externalUserIdArg: string;
public authorizationToken: string;
constructor(tinkAccountrefArg: TinkAccount, tinkUserIdArg: string, externalUserIdArg: string) {
this.tinkAccountRef = tinkAccountrefArg;
this.tinkUserId = tinkUserIdArg;