node-flinks
TypeScript icon, indicating that this package has built-in type declarations

0.5.1 • Public • Published

Node Flinks

Build status

A Flinks API wrapper for Node.js

Usage

Installation

npm install node-flinks

Creating a client

import FlinksClient from 'node-flinks';

const instanceName = 'toolbox'; // Flinks sandbox instance
const clientId = '43387ca6-0391-4c82-857d-70d95f087ecb'; // Flinks sandbox clientId

const flinks = new FlinksClient(instanceName, clientId);

Creating a token

When using OAuth with Flinks you must first make a token request where you exchange a clientId, and secret for a response that contains an accessToken.

const flinksTokenResponse = await flinks.token( clientId: '<your clientId>', secret: '<your secret>');

Making an authorize request

After creating a token or if not using OAuth you need make an authorize request where you exchange a loginId for a requestId.

const requestId = await flinks.authorize({ loginId: '<your loginId>' });

Requesting accounts detail

Once you have a requestId you can request the user's accounts detail.

const accountsDetail = await flinks.getAccountsDetail({ requestId: '<your requestId from earlier' });

Debugging

This library uses the debug library. To print debug messages for node-flinks set DEBUG=node-flinks:*.

API

The API of this library mostly follows the Flinks API as specified in the REST API docs. The main difference is that the Flinks API uses PascalCase for object keys and this library uses camelCase.

Here is a list of all the Flinks API endpoints along with the corresponding library method. We have not yet implemented all the endpoints in the Flinks REST API. If an endpoint you need is missing please consider submitting a pull request.

Endpoint Client Method Reference
/AnswerMFAQuestions Not implemented Docs
/Attributes Not implemented Docs
/Authorize authorize Docs
/DeleteCard Not implemented Docs
/GenerateAuthorizeToken Not implemented Docs
/GetAccountsDetail getAccountsDetail Docs
/GetAccountsDetailAsync getAccountsDetailAsync Docs
/GetAccountsSummary getAccountsSummary Docs
/GetAccountsSummaryAsync getAccountsSummaryAsync Docs
/GetAllAttributes Not implemented Docs
/GetCreditRiskAttributes Not implemented Docs
/GetIncomeAttributes Not implemented Docs
/GetMFAQuestions Not implemented Docs
/GetStatements getStatements Docs
/GetUserAnalysisAttributes Not implemented Docs
/Investments Not implemented Docs
/SetScheduledRefresh Not implemented Docs
/Token token Docs

Contributing

Development

  1. Clone this repo
  2. npm install
  3. npm link
  4. In the package you want to test in run npm link node-flinks
  5. Build package with npm run build or turn on watch mode with npm run watch

Testing

npm test

Building

npm run build

If you need to clear the build cache run npm run clean

Publishing

  1. Update the version in package.json
  2. Add a CHANGELOG entry
  3. Commit your changes
  4. Run npm pack --dry-run to see what will be published
  5. Run npm publish
  6. Create a release on GitHub. Use the version as the tag and release name. For example for version 1.0.0 the tag and release name would be v1.0.0.

Readme

Keywords

none

Package Sidebar

Install

npm i node-flinks

Weekly Downloads

1,627

Version

0.5.1

License

MIT

Unpacked Size

59.1 kB

Total Files

42

Last publish

Collaborators

  • neo-chris-noble
  • neo-ife-ojikutu
  • neo-will-parker
  • neo-paula-grangeiro
  • gaulford
  • danielafekhume-neo
  • jashish_m
  • neo-lior-ben-shahar
  • neo-diego-nunes
  • tim-neo2
  • antonio.canabrava
  • neo.eduardoyuidy
  • neoricardogcolombo
  • kirstyrobertson
  • neo-oleksandr-yanchenko
  • neo-barry-li
  • desmond-maloney
  • harmeetsalech
  • neo-elgiz-abbasov
  • nikita-syrotenko
  • neo-bclausi
  • dustinn1235
  • neo-prerakkumar-patel
  • neo-peter-spangler
  • neo-rivan-mota
  • neo-daniel-brennan
  • neo-matt-felice
  • neo-rameez-virji
  • matt-armstrong
  • rajanatneo
  • josephma
  • neo-fredy
  • neo-zhaoquan-zhang
  • alejandrogarbi
  • ronellgarcia
  • gui.martins
  • edward.nazarov
  • annakumova
  • leah-is-offline
  • neo-shruti-goyal
  • felipe.minetto
  • neo-kevin-hillard
  • neo-ahmed-jama
  • olgavozniuk
  • tunde-neo
  • neo-shubham-patel
  • biancaballena
  • neo-sacha-cuna
  • jadonduby
  • msalama
  • ani-samajpati-neo
  • ishmeet.rayat
  • neo-bryce-brandford
  • neo-raheel-junaid
  • neo-ricardo-gomez
  • neo-lawrence-liu
  • edwardkruger
  • neobot1
  • neo-dakota-chatt
  • lucasjohannson
  • neo-travis-friesen
  • mike.himbeault-neo
  • raul.ribeiro
  • neo-shraddha
  • anhtranneo
  • lucachamecki
  • amievishwa
  • neo-matias-wengiel
  • ini-a
  • neo-ahmed-seifelnasr
  • rhullyam
  • das-boss
  • kennethcolina
  • feminachacko
  • marvindeleon
  • neo-miguel-castro
  • neo-dione-silva
  • hanna.tkachenko
  • nico-connor
  • roman.mnatsakanian
  • riley-pickerl
  • thomas-llewellyn-neo
  • briancruz
  • amjad-mahfoud-neo
  • neoauderesantos
  • nitin.madan
  • mohpor
  • cghenneneo
  • punit.patel
  • brayden_sc_neo
  • anna_benemanskaia
  • hrishikeshkale
  • kyle-elyk-neo
  • michelepiperni
  • neo-youre_pena
  • neo-michal-kowal
  • niconeiman
  • neodiegobeltran
  • stburke
  • marcelo.matos
  • matheusicaro
  • divanshu
  • maiahneo
  • kimberlytranneo
  • rjberry
  • neo-carlos-pieren
  • mohamedalhammoud
  • neo-hasanpreetsingh
  • irakitnykh
  • jcavalcanti
  • stephanie-wang-neo
  • kaelanneofinancial
  • vinicius-barcelos
  • benx-neo
  • mhowitt-neo
  • malcolm-neo
  • neo-seol-kim
  • brentcam
  • teena_
  • deankim
  • herculesjr
  • matthew.belford
  • rishbar
  • neo-baonguyen
  • caio.andrade
  • scott.wiedemann
  • thomawstrahn
  • luan.le
  • dennisbarthel
  • lavanya.mohan
  • leosbelsotomayor
  • dhruvang
  • neo-rodrigoraval
  • joeljwood
  • nahom-neo
  • stefan.amyotte
  • timothy.couch.neofinancial
  • scottkayeneo
  • omolara
  • ar-ies
  • cjnewman
  • vidalrmrz
  • rnetto46
  • iansu
  • darrenpicard25
  • maxgoo
  • stschmaltz
  • usernameseb
  • eric.zaporzan.neo
  • lucasparreira
  • lewishorwood
  • craigsiemens
  • diegobmy
  • joelsimpson
  • jooh-lee
  • kasrababaei
  • mattlabarre
  • u2v22
  • johnclendvoy
  • demaestro
  • sudeep.sidhu
  • daylan.law
  • neo-stephen
  • neogibson
  • beraki
  • vrochamaaia
  • d_fenniak
  • mato-gallardo
  • adamtranquilla
  • nehasingh1801
  • lucaslongarini
  • erozonachi
  • faddoul
  • lovekesh1
  • pichatelli
  • npoltz-neo