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 bundles = await lokaliseApiOta.otaBundleManagement().list({
teamId: 123,
lokaliseProjectId: "123.abc",
});
bundles[0].id; // 56789
const bundleId = 5678;
const bundle = await lokaliseApiOta.otaBundleManagement().get(bundleId, {
teamId: 123,
lokaliseProjectId: "123.abc",
});
bundle.isProduction; // true
bundle.description; // "My demo bundle"
const bundleId = 5678;
const bundle = await lokaliseApiOta.otaBundleManagement().update(
bundleId,
{
description: "updated",
},
{
teamId: 123,
lokaliseProjectId: "123.abc",
},
);
bundle.description; // "updated"
const response = await lokaliseApiOta
.otaBundleManagement()
.delete(tokenIdDelete, {
teamId: teamId,
lokaliseProjectId: projectId,
});
response.deleted; // true