1.0.0 • Published 5 years ago

ngx-radarr v1.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
5 years ago

Ngx-Radarr

A simple angular package to interact with the Radarr API.

Installation

To install this package you must first import it into your app.module.ts providing it with a config.

import { NgxRadarrModule, Config } from 'ngx-radarr';

const ngxRadarrConfig: Config = {
    url: 'YOUR RADARR API URL HERE', // Eg. https://123/api
    key: 'YOUR RADARR API KEY HERE'
};

@NgModule({
...
imports: [
    NgxRadarrModule.forRoot(ngxRadarrConfig)
])

Next you can import the service where you need it and start using it.

import { RadarrApiService } from 'ngx-radarr';
...
constructor(private radarr: RadarrApiService) {}
...
public getMovies() {
    this.radarr.getMoviesInLibrary().then((movies) => {
        console.log(movies);
    });
}