From 14063a4d243a7922b76a5cf2eb93da4bfeec8548 Mon Sep 17 00:00:00 2001 From: CheezItMan Date: Wed, 19 Jun 2019 21:47:34 -0700 Subject: [PATCH 1/2] add reminder about the API key, because I **always** forget --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 5217c032..84ef4c0b 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,10 @@ # VideoStoreAPI This Video Store API implementation is based on the Video Store API project that you have previously completed. +## Set Up Notes + +You will need to acquire an API key from [The Movie Database](https://www.themoviedb.org/documentation/api) before you can run this project and this includes seeding the database. + ## Functionality This API comes pre-packaged with most of the functionality that you will require. The following endpoints are impemented, based off of the primary and optional requirements of the project. From ed533d0f42b8a4cae7332bfa88f865690e8ed0a5 Mon Sep 17 00:00:00 2001 From: CheezItMan Date: Wed, 19 Jun 2019 22:03:47 -0700 Subject: [PATCH 2/2] remove extraneous puts --- lib/movie_wrapper.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/lib/movie_wrapper.rb b/lib/movie_wrapper.rb index c51d05ee..0152c40e 100644 --- a/lib/movie_wrapper.rb +++ b/lib/movie_wrapper.rb @@ -9,13 +9,10 @@ class MovieWrapper def self.search(query) url = BASE_URL + "search/movie?api_key=" + KEY + "&query=" + query - puts url - # puts url response = HTTParty.get(url) if response["total_results"] == 0 return [] else - puts response movies = response["results"].map do |result| self.construct_movie(result) end