0.1.3 • Published 1 year ago

@erkjbro/the-one-sdk v0.1.3

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

@erkjbro/the-one-sdk

Description

SDK for interacting with the one API to rule them all.

Getting Started

You need an account to obtain an access token to be used with the API. You can get one here.

Installation

This package is available here on npm. You can install it with the following command:

npm i -S @erkjbro/the-one-sdk

Usage

const { TheOneSdk } = require("@erkjbro/the-one-sdk");

const sdk = new TheOneSdk(YOUR_ACCESS_TOKEN_HERE);

// Get all movies
const movies = await sdk.getMovieData();

// Get specific movie by id
const movie = await sdk.getMovieData({ 
  movieId: 'id_for_lotr_movie' 
});

// Get all quotes for specific movie by id
const movieQuotes = await sdk.getMovieData({
  movieId: 'id_for_lotr_movie',
  quote: true,
});
0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago