Socket
Socket
Sign inDemoInstall

node-flinks

Package Overview
Dependencies
42
Maintainers
162
Versions
8
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-flinks

Flinks API wrapper for Node.js


Version published
Weekly downloads
1.6K
increased by0.62%
Maintainers
162
Install size
4.97 MB
Created
Weekly downloads
 

Changelog

Source

0.5.1 (November 4, 2022)

  • Expose FlinksErrorResponse

Readme

Source

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.

EndpointClient MethodReference
/AnswerMFAQuestionsNot implementedDocs
/AttributesNot implementedDocs
/AuthorizeauthorizeDocs
/DeleteCardNot implementedDocs
/GenerateAuthorizeTokenNot implementedDocs
/GetAccountsDetailgetAccountsDetailDocs
/GetAccountsDetailAsyncgetAccountsDetailAsyncDocs
/GetAccountsSummarygetAccountsSummaryDocs
/GetAccountsSummaryAsyncgetAccountsSummaryAsyncDocs
/GetAllAttributesNot implementedDocs
/GetCreditRiskAttributesNot implementedDocs
/GetIncomeAttributesNot implementedDocs
/GetMFAQuestionsNot implementedDocs
/GetStatementsgetStatementsDocs
/GetUserAnalysisAttributesNot implementedDocs
/InvestmentsNot implementedDocs
/SetScheduledRefreshNot implementedDocs
/TokentokenDocs

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.

FAQs

Last updated on 04 Nov 2022

Did you know?

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc