示例#1
0
        public Task <RatedMoviesResponse> GetRatedMovie(MovieRequest request, string sortBy)
        {
            string uri = $"guest_session/{request.Guest_session_id}/rated/movies?api_key={request.Api_key}&language={request.Language}&sort_by={sortBy}";

            return(ApiHelper.GetMovieApi <RatedMoviesResponse>(uri, _httpClient));
        }
示例#2
0
        public Task <GenreResponse> GetListGenre(SearchRequest request)
        {
            string uri = $"genre/movie/list?api_key={request.Api_key}&language={request.Language}";

            return(ApiHelper.GetMovieApi <GenreResponse>(uri, _httpClient));
        }
示例#3
0
        public Task <GuessSessionResponse> CreateGuessSession(MovieRequest request)
        {
            string uri = $"authentication/guest_session/new?api_key={request.Api_key}";

            return(ApiHelper.GetMovieApi <GuessSessionResponse>(uri, _httpClient));
        }