Compare commits
10 Commits
Author | SHA1 | Date | |
---|---|---|---|
a25e758faf | |||
14f2ba0692 | |||
0c391c1fd1 | |||
0c9decce3e | |||
edb3160f35 | |||
0eb51cf3c5 | |||
80373424b4 | |||
d108baf672 | |||
031d140a44 | |||
c96ccf198c |
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/tink",
|
"name": "@mojoio/tink",
|
||||||
"version": "1.0.10",
|
"version": "1.0.15",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@mojoio/tink",
|
"name": "@mojoio/tink",
|
||||||
"version": "1.0.10",
|
"version": "1.0.15",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@pushrocks/smartrequest": "^1.1.56"
|
"@pushrocks/smartrequest": "^1.1.56"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@mojoio/tink",
|
"name": "@mojoio/tink",
|
||||||
"version": "1.0.10",
|
"version": "1.0.15",
|
||||||
"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",
|
||||||
|
22
readme.md
22
readme.md
@ -27,9 +27,31 @@ Platform support | [;
|
||||||
|
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
|
## Contribution
|
||||||
|
|
||||||
|
@ -1,2 +1,3 @@
|
|||||||
export * from './tink.classes.tinkaccount';
|
export * from './tink.classes.tinkaccount';
|
||||||
export * from './tink.classes.tinkuser';
|
export * from './tink.classes.tinkuser';
|
||||||
|
export * from './tink.classes.tinkproviderconsent';
|
Reference in New Issue
Block a user