ngx-radarr
v1.0.0
Published
A Angular 7+ package for interacting with the Radarr API.
Downloads
5
Maintainers
Readme
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);
});
}