The One API Typescript wrapper
Using npm:
npm install ring-api
Using yarn:
yarn add ring-api
For more information on how to obtain an API key, visit The One API
import { getClient } from 'ring-api';
// ...
const client = getClient({API_KEY: 'xxx'});
Get a list of all movies in the API
const movies = await client.movie.getAll();
Get a specific movie by ID
const movie = await client.movie.getById('5cd95395de30eff6ebccde5c');
Get a list of all quotes in a movie
const quotes = await client.movie.getQuoteById('5cd95395de30eff6ebccde5c');
Get a list of all quotes in the API
const movies = await client.quote.getAll();
Get a specific quote by ID
const movie = await client.quote.getById('5cd96e05de30eff6ebcce917');
npm run test