mirror of
https://github.com/Ombi-app/Ombi.git
synced 2025-07-12 16:22:55 -07:00
More work on watcher, should all be good now. #878
This commit is contained in:
parent
34e00e15c2
commit
add4e86d49
5 changed files with 56 additions and 2 deletions
|
@ -64,6 +64,23 @@ namespace Ombi.Api
|
|||
};
|
||||
}
|
||||
}
|
||||
public WatcherVersion Version(string apiKey, Uri baseUri)
|
||||
{
|
||||
var response = Send("version", apiKey, baseUri);
|
||||
try
|
||||
{
|
||||
return JsonConvert.DeserializeObject<WatcherVersion>(response.Content);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Log.Error(e);
|
||||
return new WatcherVersion
|
||||
{
|
||||
response = false,
|
||||
ErrorMessage = e.Message
|
||||
};
|
||||
}
|
||||
}
|
||||
|
||||
public WatcherListStatusResultContainer ListMovies(string apiKey, Uri baseUrl)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue