Node interface for the Lokalise APIv2.
View the Project on GitHub lokalise/node-lokalise-api
Please note that this endpoint requires an instance of LokaliseApiOta
with a JWT. Refer to the OTA introduction article to learn more.
const stat = await lokaliseApiOta.otaUsageStatistics().get(
{
dateFrom: "2023-06-01",
dateTo: "2023-08-23",
},
{
teamId: 123,
lokaliseProjectId: "123.abc",
},
);
stat.monthly[0].downloads; // 100
stat.totals.trafficBytes; // "56789"