jwplayer-managment-api
v1.0.6
Published
Smaller wrapper around JWPlayer's managment-api.
Downloads
16
Maintainers
Readme
jwplayer-managment-api
A NodeJS wrapper for jwplayer managment API
Install
$ npm install --save jwplayer-managment-api
Usage
const JwPlayerApi = require('jwplayer-managment-api');
const jwPlayerApi = new JwPlayerApi({
key: "********",
secret: "********"
})
const endpoint = "videos/create";
const params = {
title,
sourcetype: "url",
sourceurl: "https://videoUrl.mp4",
sourceformat: 'mp4',
tags: "tag"
}
jwPlayerApi.makeRequest(endpoint,params).then(console.log).catch(console.error)
// OR
console.log(jwPlayerApi.generateUrl(endpoint,params))
Read JW Player Docs
To see the complete list of enpoints and the params they take checkout JW Player API Docs
License
MIT © 2019 Bitbean LLC