A basic wrapper around the itunesconnectanalytics package to simplify usage. So far limited functionality available - dimension filters and groups are not implemented.
Note: Testing does work but not included in source as an AppStore account is required.
import itunes, { Measures } from "itunes-connect-wrapper";
const it = new itunes();
const callback = (err, res) => {
if(err) console.error(err);
else console.log(res);
}
it.login(USERNAME, PASSWORD).then(res => {
it.setAppId("APP_ID");
it.getMetric([Measures.installs, Measures.pageViews], START_DATE, END_DATE, callback);
});