Giter VIP home page Giter VIP logo

tink-link-web-example's Introduction

Platform Languages

Tink Example

This is an example web app that demonstrates how you can integrate the Tink API to fetch accounts and transaction data.

Installation

Install the LTS (v18+) or newer version of Nodejs.

Prerequisites

  1. Create your developer account at Tink Console
  2. Follow the getting started guide to retrieve your client_id and client_secret
  3. Register the redirect URI for the example app (http://localhost:3000/callback) in the list of redirect URIs under your app's settings

Running locally

  1. Set environment variables

Update the "start" script in package.json to include your client id and client secret

diff --git a/package.json b/package.json
--- a/package.json
+++ b/package.json
@@ -4,7 +4,7 @@
   "description": "",
   "main": "server.js",
   "scripts": {
-    "start": "TINK_CLIENT_SECRET= TINK_CLIENT_ID= node server.mjs"
+    "start": "TINK_CLIENT_SECRET=c37cc3c09ab947f5a6fcab********** TINK_CLIENT_ID=de18d62c4d1643c0b3fcea********** node server.mjs"
   },
   "author": "",
   "license": "ISC",
  1. Set client_id in index.html

Replace <TINK_CLIENT_ID> with your client id in the value of the input name="client_id"

--- a/index.html
+++ b/index.html
@@ -40,7 +40,7 @@
           </select>
         </div>
 
-        <input type="hidden" name="client_id" value="<TINK_CLIENT_ID>" />
+        <input type="hidden" name="client_id" value="de18d62c4d1643c0b3fcea**********" />
         <input type="hidden" name="redirect_uri" value="http://localhost:3000/callback" />
 
         <button class="btn">Go!</button>
  1. Run the local server
npm start

Open http://localhost:3000 in your browser.


Resources

tink-link-web-example's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.