# vhx-promise

> Async/promisified Vimeo OTT Node.js API Client.

Latest version **0.1.2** (published 2019-03-05) · ISC license · 0 weekly downloads

## Install

```sh
npm install vhx-promise
pnpm add vhx-promise
yarn add vhx-promise
bun add vhx-promise
```

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.2 |
| Published | 2019-03-05 |
| First published | 2019-02-25 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 2 |
| Unpacked size | 17.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Ren Simmons |
| Maintainers | reneric |

## Links

- npm: https://www.npmjs.com/package/vhx-promise
- Repository: https://github.com/reneric/vhx-promise
- Homepage: https://github.com/reneric/vhx-promise#readme
- Issues: https://github.com/reneric/vhx-promise/issues
- npm.io page: https://npm.io/package/vhx-promise

## Dependencies (2)

- [vhx](https://npm.io/package/vhx.md) ^1.8.0
- [debug](https://npm.io/package/debug.md) ^4.1.1

## Recent versions

- 0.1.2 (latest) — 2019-03-05
- 0.1.1 — 2019-02-28
- 0.1.0 — 2019-02-26
- 0.0.12 — 2019-02-25
- 0.0.11 — 2019-02-25
- 0.0.10 — 2019-02-25
- 0.0.9 — 2019-02-25
- 0.0.7 — 2019-02-25
- 0.0.6 — 2019-02-25
- 0.0.5 — 2019-02-25
- 0.0.4 — 2019-02-25
- 0.0.3 — 2019-02-25
- 0.0.2 — 2019-02-25
- 0.0.1 — 2019-02-25

## README

# Async/promisified Vimeo OTT Node.js API Client

Use the Vimeo OTT (vhx) API client with async/await or promises.

### Installation

`npm install vhx-promise`

### Getting Started

The first step is setting up your instance of the Client:

```js
const vhxPromise = require('vhx-promise');

const vhx = new vhxPromise('YOUR_API_KEY_HERE');
```


Async/await:
```js
async () => {
    // Customer creation example
    const customer = await vhx.customers.create({
      email: 'customer@email.com',
      name: 'First Last'
    });
    console.log(customer);
    return customer;
};
```

Promises:
```js
() => {
    // Customer creation example
    return vhx.customers.create({
      email: 'customer@email.com',
      name: 'First Last'
    })
      .then((customer) => {
        console.log(customer);
        return customer;
      });
};
```

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