Example #1
0
        // Searches Utelly by title. Not currently used in favor of using the more accurate IMDB ID
        public static Result[] SearchUtelly(string searchTerms)
        {
            var client  = new RestClient($"https://utelly-tv-shows-and-movies-availability-v1.p.rapidapi.com/lookup?term={searchTerms}&country=us");
            var request = new RestRequest(Method.GET);

            request.AddHeader("x-rapidapi-host", "utelly-tv-shows-and-movies-availability-v1.p.rapidapi.com");
            request.AddHeader("x-rapidapi-key", _utellyKey);
            IRestResponse response = client.Execute(request);

            UtellyResult utellyResultConv = UtellyResult.FromJson(response.Content);

            return(utellyResultConv.Results);
        }
Example #2
0
 public static string ToJson(this UtellyResult self) => JsonConvert.SerializeObject(self, NowPlaying.Converter.Settings);