Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-flinks

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-flinks

Flinks API wrapper for Node.js

  • 0.1.1
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Build status

A Flinks API wrapper for Node.js

Usage

Installation

yarn add @neofinancial/node-flinks

Creating a client

import FlinksClient from 'node-flinks';

const flinks = new FlinksClient({
  instanceName: 'toolbox', // Flinks sandbox instance
  clientId: '43387ca6-0391-4c82-857d-70d95f087ecb' // Flinks sandbox clientId
});

Making an authorize request

Before you can make any requests to the Flinks API you must first 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.

We have not yet implemented all the endpoints in the Flinks REST API. The endpoints that are implemented are:

EndpointClient MethodDocs
/Authorizeauthorizehttps://docs.flinks.io/reference/authorize-token#authorize-with-token
/BankingServices/GetAccountsDetailgetAccountsDetailhttps://docs.flinks.io/reference/accounts-information#step-2-calling-for-data

Contributing

Development

  1. Clone this repo
  2. yarn
  3. Build package with yarn build or turn on watch mode with yarn watch
  4. Run client tests against Flinks API with yarn test:client

Testing

yarn test

Building

yarn build

If you need to clear the build cache run yarn 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.

FAQs

Package last updated on 19 Oct 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc