
Product
Introducing Webhook Events for Pull Request Scans
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
@eyevinn/enigma.io
Advanced tools
An NPM library for integration with Red Bee Media Managed OTT platform.
npm install @eyevinn/enigma.io
Provide API key ID and secret with the environment variables API_KEY_ID
and API_KEY_SECRET
.
const EnigmaIO = require("@eyevinn/enigma.io");
const managementApi = new EnigmaIO.ManagementAPI("Customer", "BusinessUnit");
// using red bee's stage environment
const managementApi = new EnigmaIO.ManagementAPI("Customer", "BusinessUnit", { environment: "stage"});
getEndUsers
Retrieve a list of end users.getEndUser
Retrieve a specific end user.getEndUserById
Retrieve a specific end user by their account id.createUser
Create a single end user.createUsers
Bulk create users.setLabelsForUser
Set labels on an existing user.getProductOfferings
Retrieve a list of productOfferings.getProductOffering
Retrieve a specific productOffering.setLabelsForProductOffering
Set labels on an existing productOffering.getPurchases
Retrieve active purchases for an account.performPurchase
Performs a purchase of a given productOffering for a given account.removePurchase
Remove a purchased productOffering and its access from a given account.createAsset
Create an assetWhere the metadata object should be constructed in the following format
{
"languages": [ "en" ],
"en": {
"description": "Walt rejects everyone who tries to help him with the cancer. Jesse tries his best to create Walt's meth, with the help of an old friend."
},
"studio": "Sony Pictures Television",
"productionYear": "2019"
}
linkAssets
Create a link from srcAssetId to destAssetId.ingestVideo
Ingest a video file to an asset. The URL to the video file must be accessible by the platform.publishAsset
Add a product publication to an asset.unpublishAsset
Remove one single publication, or all publications, on an asset.createProduct
Create a product in the platformgetProducts
Get all products in the platformgetProduct
Get a specific product in the platformconst EnigmaIO = require("@eyevinn/enigma.io");
const exposureApi = new EnigmaIO.ExposureAPI("Customer", "BusinessUnit");
// using red bee's stage environment
const exposureApi = new EnigmaIO.ExposureAPI("Customer", "BusinessUnit", { environment: "stage"});
authenticate
Get an authenticated session for an end userconst authResponse = await exposureApi.authenticate(username, password);
const sessionToken = authResponse.sessionToken;
play
Get a medialocator, i.e. a manifest, to play the fileconst authResponse = await exposureApi.authenticate(username, password);
const sessionToken = authResponse.sessionToken;
const playResponse = await exposureApi.play(sessionToken, assetId);
const hlsFormat = playResponse.formats.find(a => a.format === "HLS");
if (hlsFormat) {
const mediaLocator = hlsFormat.mediaLocator;
}
getAssets
Get all assets of a specific asset type.getAsset
Get a specific asset by its asset ID.resolveSerie
Get all assets for a serie and structured in a series/seasons/episodes structure..env
file in the root of the projectAPI_KEY_ID
and API_KEY_SECRET
for the Management APIUSERNAME
and PASSWORD
to obtain session for the Exposure APInpm test
FAQs
NPM library for integration with Red Bee Media Managed OTT APIs
The npm package @eyevinn/enigma.io receives a total of 17 weekly downloads. As such, @eyevinn/enigma.io popularity was classified as not popular.
We found that @eyevinn/enigma.io demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 3 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Add real-time Socket webhook events to your workflows to automatically receive pull request scan results and security alerts in real time.
Research
The Socket Threat Research Team uncovered malicious NuGet packages typosquatting the popular Nethereum project to steal wallet keys.
Product
A single platform for static analysis, secrets detection, container scanning, and CVE checks—built on trusted open source tools, ready to run out of the box.