gkye/TheMovieDatabaseSwiftWrapper

Swift error on simple query

andreienache97 opened this issue · 3 comments

screenshot 2019-02-13 at 22 53 01

For some reason I get this error on a simple Discover query. I declared the API_KEY as being a String.

Any ideas how to fix it?

Thanks!

discoverMovies method doesn't accept apikey as parameter.
user TMDBConfig.apikey to set api key

Can you give me an example how to set up the API key? I couldn't find any in the documentation.

set it like this:

TMDBConfig.apikey = "YOUR_API_KEY"

edit: I hope this solved your problem. Please reopen the issue if not.