open-banking-pfm-sdk
Version:
The Open Banking PFM SDK uses Client classes and with **Promises** to get responses from the Open Banking PFM API in an easier way and structured as data models.
20 lines (12 loc) • 620 B
Markdown

This client helps in Open Banking Consents endpoints.
```javascript
import { ConsentsClient } from 'open-banking-pfm-sdk';
//The constructor receives an api key to validate access to all of its functions. This parameter is required. If you want to change the API Server Url you can do it passing it as second parameter.
const SERVER_URL =
'http://tecbantest@ec2-3-21-18-54.us-east-2.compute.amazonaws.com:8081/api/v1/';
const consentsClient = new ConsentsClient('XXXX-XXXX-XXXX', SERVER_URL);
```