2019-08-14 09:48:44 +00:00
|
|
|
/* global axios */
|
|
|
|
|
|
|
|
import endPoints from './endPoints';
|
|
|
|
|
|
|
|
export default {
|
|
|
|
getAccountReports(metric, from, to) {
|
2019-12-21 17:24:35 +00:00
|
|
|
const { url } = endPoints('reports').account(metric, from, to);
|
|
|
|
return axios.get(url);
|
2019-08-14 09:48:44 +00:00
|
|
|
},
|
|
|
|
getAccountSummary(accountId, from, to) {
|
|
|
|
const urlData = endPoints('reports').accountSummary(accountId, from, to);
|
2019-12-21 17:24:35 +00:00
|
|
|
return axios.get(urlData.url);
|
2019-08-14 09:48:44 +00:00
|
|
|
},
|
|
|
|
};
|