Go to file
2022-10-30 17:40:16 +01:00
.vscode fix(core): update 2022-01-26 16:01:10 +01:00
test fix(core): update 2022-10-29 17:46:17 +02:00
ts fix(core): update 2022-10-30 17:40:16 +01:00
.gitignore fix(core): update 2022-01-26 16:01:10 +01:00
.gitlab-ci.yml BREAKING CHANGE(core): switch to esm and allow specification of redirect url 2022-04-18 18:54:53 +02:00
license fix(core): update 2022-01-26 16:01:10 +01:00
npmextra.json fix(core): update 2022-01-26 16:01:10 +01:00
package.json 3.1.6 2022-10-30 17:27:13 +01:00
pnpm-lock.yaml fix(core): update 2022-10-29 16:18:29 +02:00
qenv.yml fix(core): update 2022-02-15 16:51:16 +01:00
readme.md BREAKING CHANGE(core): switch to esm and allow specification of redirect url 2022-04-18 18:54:53 +02:00
tsconfig.json feat(BankAccount and BankTransaction): now supporting the full retrieval process 2022-08-23 16:56:59 +02:00

@mojoio/tink

an unofficial api abstraction for tink.com

Status for master

Status Category Status Badge
GitLab Pipelines pipeline status
GitLab Pipline Test Coverage coverage report
npm npm downloads per month
Snyk Known Vulnerabilities
TypeScript Support TypeScript
node Support node
Code Style Code Style
PackagePhobia (total standalone install weight) PackagePhobia
PackagePhobia (package size on registry) PackagePhobia
BundlePhobia (total size when bundled) BundlePhobia
Platform support Supports Windows 10 Supports Mac OS X

Usage

Use TypeScript for best inclass intellisense

// 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

We are always happy for code contributions. If you are not the code contributing type that is ok. Still, maintaining Open Source repositories takes considerable time and thought. If you like the quality of what we do and our modules are useful to you we would appreciate a little monthly contribution: You can contribute one time or contribute monthly. :)

For further information read the linked docs at the top of this readme.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer