Almost fully integrated TVMaze #21 and also improved the fix for #31

This commit is contained in:
Jamie Rees 2016-03-18 21:10:01 +00:00
commit f88c7d7583
9 changed files with 64 additions and 23 deletions

View file

@ -56,5 +56,18 @@ namespace PlexRequests.Api
return Api.Execute<List<TvMazeSearch>>(request, new Uri(Uri));
}
public TvMazeShow ShowLookup(int showId)
{
var request = new RestRequest
{
Method = Method.GET,
Resource = "shows/{id}"
};
request.AddUrlSegment("id", showId.ToString());
request.AddHeader("Content-Type", "application/json");
return Api.Execute<TvMazeShow>(request, new Uri(Uri));
}
}
}