Skip to content

Latest commit

 

History

History
26 lines (17 loc) · 909 Bytes

README.md

File metadata and controls

26 lines (17 loc) · 909 Bytes

Itunes Connect Wrapper

CodeFactor

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.

Example usage

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);
});