1.2.1 • Published 6 years ago

jwplayer-node v1.2.1

Weekly downloads
577
License
ISC
Repository
github
Last release
6 years ago

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
1.2.1

6 years ago

1.2.0

6 years ago

1.0.12

7 years ago

1.0.11

7 years ago

1.0.10

7 years ago

1.0.9

7 years ago

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.3

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago