This is a Go package that lets you to interact with your Radarr instance. Developed for Radarr API v2.
Radarr API v3 is under construction. See here and here.
You can use it as CLI. See related section
Here are the currently supported endpoints:
- Calendar
- Command
- Diskspace
- History
- Movie
- Returns all Movies in your collection
- Returns the movie with the matching ID or 404 if no matching movie is found
- Adds a new movie to your collection
- Update an existing movie
- Delete the movie with the given ID
- Movie Lookup
- Queue
- List Exclusions
- System-Status
package main
import (
"fmt"
"log"
"github.com/SkYNewZ/radarr"
)
// Instantiate a standard client
func main() {
client, err := radarr.New("https://my.radarr-instance.fr", "radarr-api-key", nil)
if err != nil {
log.Fatalln(err)
}
movie, err := client.Movies.Get(217)
if err != nil {
log.Fatalln(err)
}
fmt.Printf("%s", movie.Title)
// Output:
// Frozen II
}