Radarr::Client
Constructors
Class methods
Default time to wait for the TCP connection to be established.
Tunable globally via Radarr::Client.default_connect_timeout=.
Default time to wait for the TCP connection to be established.
Tunable globally via Radarr::Client.default_connect_timeout=.
Default time to wait for the server to send response data before giving up.
Tunable globally via Radarr::Client.default_read_timeout=.
Default time to wait for the server to send response data before giving up.
Tunable globally via Radarr::Client.default_read_timeout=.
Parses body into an Array(type); returns [] of T for empty/204 bodies.
Parses body into a single type; returns nil for empty/204 bodies.
Normalizes a request body into a JSON string (or nil for no body).
Normalizes a request body into a JSON string (or nil for no body).
Instance methods
Issues method against path (relative to the configured endpoint) and
returns the raw Crest::Response.
query— an optionalRadarr::Queryof paging params / filters.body— an optional request body: aString, or any object that responds to#to_json(a model orArrayof models). When present theContent-Type: application/jsonheader is added.
The apikey query param and X-Api-Key header are always attached.
Non-2xx responses raise Radarr::ApiError (wrapping crest's failure).
resp = client.request(:get, "api/v3/movie", Radarr::Query.paging(page: 1))
movies = Array(Radarr::Model::MovieResource).from_json(resp.body)
Requests and deserializes a JSON array of type (empty for empty bodies).
Requests and deserializes a single object of type (nil for empty bodies).