@lokalise/node-api
Version:
Official Lokalise API 2.0 Node.js client
27 lines (20 loc) • 787 B
Markdown
[](https://developers.lokalise.com/reference/bundle-object)
[](https://developers.lokalise.com/reference/get-ota-bundle)
**To learn how to generate an OTA SDK token, [please refer to the OTA Introduction article ("Requesting OTA bundles" section)](https://lokalise.github.io/node-lokalise-api/ota/introduction#requesting-ota-bundles).**
```ts
const lokaliseOtaBundles = new LokaliseOtaBundles({ apiKey: "YOUR_OTA_SDK_TOKEN" });
const bundle = await lokaliseOtaBundles.otaBundles().get(
{
appVersion: "1.2.3",
transVersion: 1,
},
{
framework: "ios_sdk",
lokaliseProjectId: "123.abc",
},
);
bundle.url; // "https://ota-bundles.lokalise.com/..."
bundle.version; // 1234
```