-
Notifications
You must be signed in to change notification settings - Fork 2
/
getMovements.js
30 lines (28 loc) · 908 Bytes
/
getMovements.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
const axios = require("axios");
require("dotenv").config();
const getMovements = async () => {
const response = await axios.post(
"https://online.bbva.com.ar/fnetcore/servicios/cliente/productos/cuentas/movimientos",
{
idProducto: process.env.PROD_ID,
},
{
params: {
ts: `${new Date().getTime()}`,
},
headers: {
authority: "online.bbva.com.ar",
accept: "application/json, text/plain, */*",
"accept-language": "en-US,en;q=0.9,es-US;q=0.8,es-ES;q=0.7,es;q=0.6",
"content-type": "application/json;charset=UTF-8",
cookie: process.env.COOKIE,
origin: "https://online.bbva.com.ar",
referer: "https://online.bbva.com.ar/fnetcore/",
uid: process.env.UID,
"x-xsrf-token": process.env.XSRF_TOKEN,
},
}
);
return response.data.result.movimientos;
};
module.exports = getMovements;