Security News
The Risks of Misguided Research in Supply Chain Security
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
verizon-uplynk-api
Advanced tools
Node.JS implementation of Verizon UpLynk APIs
verizon-uplynk-api
implements two sets of API's provided by VDMS UpLynk:
LiveSlicer API is used to communicate with an instance of UpLynk Live Slicer running locally and uploading video to the cloud. For details of this API and available methods please see http://support.uplynk.com/doc_live_slicer_api.html.
To use this API, create an instance of LiveSlicer()
and use LiveSlicer.request()
passing the API method, parameters as object and a callback to asynchronously process the response.
See the documentation referenced above for a full list of methods available.
const vzAPI = require('verizon-uplynk-api');
var liveSlicer = new vzAPI.LiveSlicer('http://10.122.173.51:65009');
liveSlicer.request('status',{},(response)=>{
if (response.error) {
console.log(`LiveSlicer access error ${response.error} ${response.msg}.`);
} else {
console.log(`LiveSlicer ${response.status.slicer_id} is sending ${response.status.signal}`);
}
});
Output:
LiveSlicer myslicer1 is sending TS multicast 233.1.1.1:11112 1280x720
Integration API's at http://service.uplynk.com are used to communicate with the UpLynk cloud platform. For details of these API's see http://support.uplynk.com/doc_integration_apis.html.
To use these API's, create an instance of API()
, then use API.request()
passing the API "endpoint", parameters as object and a callback to asynchronously process the response.
See the documentation referenced above for a full list of endpoints available.
const vzAPI = require('verizon-uplynk-api');
var api = new vzAPI.API( '06d6f896162146e3928032bb2e546837', 'rw6ZDVL/2Oz0tjIu3ha2tO5TCt3qOy+gqnbixXI8A');
// Fetch and print asset ID's
api.request('/api2/asset/list',{},(response)=>{
if (response.error) {
console.log(`Integration API access error ${response.error} ${response.msg}.`);
} else {
console.log(`Total ${response.assets.length} assets found:`);
for ( a in response.assets ) {
console.log(` ${response.assets[a].id} ${response.assets[a].desc}`);
}
}
});
Output:
Total 6 assets found:
7e4f02e6e358486593d194bfc108b1cf realtime.mpg
1f3656434d1a4205bad477dea0a90982 safelite.ts
e91ebe7af2c449e792cb14947cf3beb0 safelite_30_640x360_264.ts
fbba907a1afb4a8d861a61477add7028 salonpas.ts
0fa8d090231c4503adc99e8a6291e91f wix.ts
a296e9cf4eac4cda9b525ebc0d4d5082 crizal.ts
verizon-uplynk-api
is an NPM module. You can install it using npm
:
npm install verizon-uplynk-api
Unit tests are using nodeunit
.
Running unit tests would require you to have an active VDMS UpLynk account and a running instance of LiveSlicer with API enabled. To run tests, you will also need to create a config.json
file in test
directory. This JSON file is used to store your UpLink account credentials (userID/accountGUID and API key), and the URL of your LiveSlicer API. Obviously, I am not shipping mine with the module;).
The format of this file is:
{
"liveSlicerURL": "<URL of the LiveSlicer API>",
"liveSlicerURLAuth": "<URL of the Authenticated LiveSlicer API",
"userID": "<User ID from Gears/Account Settings tab in CMS>",
"apiKey": "<API Key from Gears/Playback Tokens tab in CMS>"
}
Once this is set up and LiveSlicer is running, execute
nodeunit
to run the tests.
License: MIT
Copyright © 2017 Crystal Computer Corp.
http://www.crystalcc.com
FAQs
Node.JS implementation of Verizon Uplynk APIs
We found that verizon-uplynk-api demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer 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.
Security News
Snyk's use of malicious npm packages for research raises ethical concerns, highlighting risks in public deployment, data exfiltration, and unauthorized testing.
Research
Security News
Socket researchers found several malicious npm packages typosquatting Chalk and Chokidar, targeting Node.js developers with kill switches and data theft.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.