More work on watcher, should all be good now. #878

This commit is contained in:
Jamie.Rees 2017-01-04 08:24:50 +00:00
parent 34e00e15c2
commit add4e86d49
5 changed files with 56 additions and 2 deletions

View file

@ -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)
{