New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

jwplayer-node

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jwplayer-node

Node module to easily interact with the jwplayer api

latest
Source
npmnpm
Version
1.2.1
Version published
Weekly downloads
58
114.81%
Maintainers
1
Weekly downloads
 
Created
Source

jwplayer-node

Node module to easily make calls to the jwplayer api.

Warnings

Jwplayer does not support 4 bytes unicode chars. Avoid using them in the parameters you send the API.

Example usage

const jwplayer = require('jwplayer-node')({api_key: 'XXX', api_secret: 'XXXXX'})
const video_params = {title: 'new video',description: 'this is a new video I am uploading'}

jwplayer.call_api(
{
  method: 'post',
  path: '/v1/videos/create',
},
video_params)
.then(succ => /*jwplayer response*/)
.catch(err => /*jwplayer error response*/)

API

On require make sure to pass jwplayer an object with your api_key and api_secret. You can find them in your jwplayer dashboard. More info here

call_api

  • parameters
    • config - object containing parameters to configure api_call
      • method - get/post
      • path - apiversion/class/subclass REQUIRED
        • current api version is v1
        • you can find class subclass and api version on the jwplayer api
    • param - all needed for the specific api call.
  • returns
    • promise containing jwplayer response

Keywords

jwplayer

FAQs

Package last updated on 08 May 2018

Did you know?

Socket

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.

Install

Related posts