Node.js
Please find installation instructions and documentation for our Node library on GitHub:
https://github.com/Cluttr-eng/fuse-node
Installation
with npm
npm install --save fuse-node
import {FuseApi, Configuration, CreateSessionRequest, CreateSessionResponse} from "fuse-node";
const configuration = new Configuration({
basePath: 'https://sandbox-api.letsfuse.com',
baseOptions: {
headers: {
'Fuse-Client-Id': 'my-fuse-client-id',
'Fuse-Api-Key': 'my-fuse-api-key',
'Content-Type': 'application/json',
'Plaid-Client-Id': 'my-plaid-client-id',
'Plaid-Secret': 'my-plaid-secret-id',
'Teller-Application-Id': 'my-teller-application-id',
'Teller-Certificate': 'my-teller-certificate',
'Teller-Private-Key': 'my-teller-private-key',
'Teller-Signing-Secret': 'my-teller-signing-secret',
'Mx-Client-Id': 'my-mx-client-id',
'Mx-Api-Key': 'my-mx-api-key',
},
},
});
const fuseApi = new FuseApi(configuration);
const response = await fuseApi.createSession({
supported_financial_institution_aggregators: ["plaid", "teller", "mx"],
entity: {
id: "my-entity-id"
},
products: ["account_details", "transactions"]
} as CreateSessionRequest);
const session = response.data as CreateSessionResponse;
console.log(session.client_secret)
Updated about 1 year ago