mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-31 03:50:08 -07:00
Made the test button actually work on the Lidarr settings page !wip
This commit is contained in:
parent
b9c37309fc
commit
28a1886767
6 changed files with 74 additions and 4 deletions
|
@ -147,6 +147,13 @@ namespace Ombi.Api.Lidarr
|
|||
return Api.Request<List<MetadataProfile>>(request);
|
||||
}
|
||||
|
||||
public Task<LidarrStatus> Status(string apiKey, string baseUrl)
|
||||
{
|
||||
var request = new Request($"{ApiVersion}/system/status", baseUrl, HttpMethod.Get);
|
||||
AddHeaders(request, apiKey);
|
||||
return Api.Request<LidarrStatus>(request);
|
||||
}
|
||||
|
||||
private void AddHeaders(Request request, string key)
|
||||
{
|
||||
request.AddHeader("X-Api-Key", key);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue