0.1.2 • Published 6 years ago

vhx-promise v0.1.2

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

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:

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

const vhx = new vhxPromise('YOUR_API_KEY_HERE');

Async/await:

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

Promises:

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

6 years ago

0.1.1

6 years ago

0.1.0

6 years ago

0.0.12

6 years ago

0.0.11

6 years ago

0.0.10

6 years ago

0.0.9

6 years ago

0.0.7

6 years ago

0.0.6

6 years ago

0.0.5

6 years ago

0.0.4

6 years ago

0.0.3

6 years ago

0.0.2

6 years ago

0.0.1

6 years ago