Introducing Socket Firewall: Free, Proactive Protection for Your Software Supply Chain.Learn More
Socket
Book a DemoInstallSign in
Socket

@igorissen/ngx-tmdb-api

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install
Package was removed
Sorry, it seems this package was removed from the registry

@igorissen/ngx-tmdb-api

TMDB api wrapper for Angular

unpublished
latest
Source
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

ngx-tmdb-api

Angular wrapper library for TheMovieDatabase API.

NOTE: Only version 3 of the API is implemented.

Getting started

Installation

$ npm i -E @igorissen/ngx-tmdb-api

Usage

Import NgxTmdbApiModule in your AppModule and configure it with your TheMovieDatabase API key.

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { NgxTmdbApiModule } from '@igorissen/ngx-tmdb-api';
import { AppComponent } from './app.component';

@NgModule({
  declarations: [ AppComponent ],
  imports: [
    BrowserModule,
    NgxTmdbApiModule.forRoot({ apiKey: 'YOUR_API_KEY_HERE' })
  ],
  bootstrap: [ AppComponent ]
})
export class AppModule {}

Please refer to TheMovieDatabase API documentation for path and query parameters name.

import { Component, OnInit } from '@angular/core';
import { Movies } from '@igorissen/ngx-tmdb-api';

@Component({
  selector: 'app-root',
  templateUrl: './app.component.html',
  styleUrls: ['./app.component.less']
})
export class AppComponent implements OnInit {
  public ngOnInit(): void {
    Movies.getDetails({
      pathParams: { movie_id: '384018' },
      queryParams: { language: 'FR', append_to_response: 'videos,images' }
    }).subscribe(console.log);
  }
}

Available Resources

v3

Keywords

tmdb

FAQs

Package last updated on 17 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts