1.5.0 • Published 9 years ago

jwplayer-api v1.5.0

Weekly downloads
187
License
MIT
Repository
github
Last release
9 years ago

jwplayer-api Build Status

A wrapper for jwplayer platform API

Install

$ npm install --save-dev jwplayer-api

Usage

'use strict';

const axios = require("axios");
const JwplayerApi = require('jwplayer-api');

const api = new JwplayerApi({
    key: "myKey",
    secret: "mySecret"
});

const myApi = {
    getUploadUrl: params => {
        return api.getUploadUrl(params);
    },

    delete: video_key => {
        return api.delete(video_key);
    },

    getVideoDetails: video_key => {
        return axios({
            method: "get",
            url: api.generateUrl("v1/videos/show", {
                video_key
            })
        }).then(res => {
            return res.data;
        });
    },

    conversionCreate: (video_key, template_key) => {
        return api.conversionCreate(video_key, template_key);
    }
};

License

MIT © Shy Alter

1.5.0

9 years ago

1.4.0

9 years ago

1.3.4

9 years ago

1.3.3

9 years ago

1.3.1

9 years ago

1.3.0

9 years ago

1.2.0

10 years ago

1.1.0

10 years ago

1.0.0

10 years ago

0.1.2

10 years ago

0.1.1

10 years ago

0.1.0

10 years ago

0.0.3

10 years ago

0.0.2

10 years ago