0.1.2 • Published 5 years ago

vhx-promise v0.1.2

Weekly downloads
11
License
ISC
Repository
github
Last release
5 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

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago

0.0.12

5 years ago

0.0.11

5 years ago

0.0.10

5 years ago

0.0.9

5 years ago

0.0.7

5 years ago

0.0.6

5 years ago

0.0.5

5 years ago

0.0.4

5 years ago

0.0.3

5 years ago

0.0.2

5 years ago

0.0.1

5 years ago