
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
node-flinks
Advanced tools
A Flinks API wrapper for Node.js
npm install node-flinks
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);
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>');
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>' });
Once you have a requestId
you can request the user's accounts detail.
const accountsDetail = await flinks.getAccountsDetail({ requestId: '<your requestId from earlier' });
This library uses the debug library. To print debug messages for node-flinks
set DEBUG=node-flinks:*
.
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 |
npm install
npm link
npm link node-flinks
npm run build
or turn on watch mode with npm run watch
npm test
npm run build
If you need to clear the build cache run npm run clean
package.json
CHANGELOG
entrynpm pack --dry-run
to see what will be publishednpm publish
1.0.0
the tag and release name would be v1.0.0
.FAQs
Flinks API wrapper for Node.js
The npm package node-flinks receives a total of 376 weekly downloads. As such, node-flinks popularity was classified as not popular.
We found that node-flinks demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.