$ npm install --save khipu-got
const khipuGot = require('khipu-got');
khipuGot('banks', {method: 'GET'}).then(res => {
console.log(res.body.banks);
});
Or:
const khipuGot = require('khipu-got');
khipuGot('https://khipu.com/api/2.0/banks', {method: 'GET'}).then(res => {
console.log(res.body.banks);
});
Must be set as environment variables
Type: number
Type: string
Same as got
, but with some additional options:
Type: string
Default: https://khipu.com/api/2.0/
To support and reference Khipu developers.
Can be set globally with the KHIPU_ENDPOINT
environment variable.
Type: string
Must be specified in a mandatorily. Required to generate the signature submitted to the Khipu API.
Type: Object
Should be specified as a plain object.
MIT © Hugo Sáez