@raulanatol/movies-sync
TypeScript icon, indicating that this package has built-in type declarations

0.0.3 • Public • Published

movies-sync

Installing

npm install @raulanatol/movies-sync

Supported APIs

  • [x] Trakt.tv

Configuration properties

API Variable Description URL
Trakt.tv TRAKT_CLIENT_ID Trakt.tv client id https://trakt.docs.apiary.io/#
Trakt.tv TRAKT_USER_ID Trakt.tv user id

Usage

import { API } from '@raulanatol/movies-sync';

const api = new API({
  lastSyncDate: '',    // Optional last sync date Date object
  trakttv: {
    clientId: process.env.TRAKT_CLIENT_ID,
    userId: process.env.TRAKT_USER_ID
  }
});

const movies = await api.getMovies();

Package Sidebar

Install

npm i @raulanatol/movies-sync

Weekly Downloads

1

Version

0.0.3

License

ISC

Unpacked Size

11.5 kB

Total Files

14

Last publish

Collaborators

  • raulanatol