# jwplayer-api

> Wraper for JwPlayer platform api

Latest version **1.5.0** (published 2017-11-20) · MIT license · 0 weekly downloads

## Install

```sh
npm install jwplayer-api
pnpm add jwplayer-api
yarn add jwplayer-api
bun add jwplayer-api
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.5.0 |
| Published | 2017-11-20 |
| First published | 2016-04-21 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Node | >=6.0.0 |
| Dependencies | 2 |
| Known vulnerabilities | 0 (+25 in 1 direct dependencies) |
| Install scripts | no |
| GitHub stars | 10 |
| Author | Shy Alter |
| Maintainers | puemos |
| Keywords | video, jw, player, api, jwplayer, jwplatform |

## Links

- npm: https://www.npmjs.com/package/jwplayer-api
- Repository: https://github.com/Puemos/jwplayer-api
- Homepage: https://github.com/Puemos/jwplayer-api#readme
- Issues: https://github.com/Puemos/jwplayer-api/issues
- npm.io page: https://npm.io/package/jwplayer-api

## Dependencies (2)

- [axios](https://npm.io/package/axios.md) ^0.16.2
- [nonce](https://npm.io/package/nonce.md) ^1.0.3

## Alternatives

- [mobx-react](https://npm.io/package/mobx-react.md) — 2.8M weekly downloads
- [rc-tree](https://npm.io/package/rc-tree.md) — 2.6M weekly downloads
- [@react-oauth/google](https://npm.io/package/@react-oauth/google.md) — 1.3M weekly downloads
- [@wagmi/connectors](https://npm.io/package/@wagmi/connectors.md) — 877.0K weekly downloads
- [vee-validate](https://npm.io/package/vee-validate.md) — 836.4K weekly downloads

## Recent versions

- 1.5.0 (latest) — 2017-11-20
- 1.4.0 — 2017-07-07
- 1.3.4 — 2017-02-21
- 1.3.3 — 2017-02-16
- 1.3.1 — 2017-02-16
- 1.3.0 — 2017-02-16
- 1.2.0 — 2016-12-09
- 1.1.0 — 2016-07-25
- 1.0.0 — 2016-06-08
- 0.1.2 — 2016-05-30
- 0.1.1 — 2016-05-30
- 0.1.0 — 2016-05-30
- 0.0.3 — 2016-04-21
- 0.0.2 — 2016-04-21

## README

# jwplayer-api [![Build Status](https://travis-ci.org/puemos/jwplayer-api.svg?branch=master)](https://travis-ci.org/puemos/jwplayer-api)

> A wrapper for jwplayer platform API


## Install

```
$ npm install --save-dev jwplayer-api
```


## Usage

```js
'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

---
_Source: https://npm.io/package/jwplayer-api · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
