@raulanatol/movies-sync
v0.0.3
Published
Sync movies from external APIs to your local database
Downloads
1
Maintainers
Readme
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();