Open spotlightishere opened 6 years ago
Could it be possible to have a parameter POSTed to the server for projects to specify their own OMDb API key?
@spotlightishere that can be done. We can initialize a NodeMovie object with an API key and then use that object to send a request.
It would appear that the OMDb API now requires an API key to be used. I found this out after using [https://random-movie.herokuapp.com](your random movie herokuapp API) which currently returns
I then was looking at this source and found https://github.com/mertkahyaoglu/node-movie which connects to OMDb.
It would appear that you can register for a free key that allows 1,000 requests per day, or unlimited by sponsoring the author on Patreon. https://www.omdbapi.com/apikey.aspx
Could it be possible to have a parameter POSTed to the server for projects to specify their own OMDb API key?