Closed sjuk closed 6 years ago
in your example you have used
tmdb.APY_KEY = 'APIKEY'
tmdb.APY_KEY = 'APIKEY'
please use
tmdb.API_KEY
tmdb.API_KEY = 'APIKEY'
It should be API not APY. Easy mistake to make.
Oh man. What a shame. A simple typo. I wasn't aware this would work with a fantasy name for the variable name. I've learned something. Thank you very much for your help. Now it works as expected. :-)
Thanks for your quick reply, @3lixy.
No worries, @sjuk. Glad you're playing with tmdbsimple!
Following the examples from the README an APIKeyError is raised after ">>> response = movie.info()". The api key works with the generated url in firefox and with python module tmdb3. Any idea what is wrong?
Thanks in advance :-)
I'm using tmdbsimple on Ubuntu 16.04 with virtualenv and installed it with pip.
$ pip freeze certifi==2018.4.16 chardet==3.0.4 idna==2.6 pkg-resources==0.0.0 requests==2.18.4 tmdbsimple==2.2.0 urllib3==1.22
Due to security reason the value of tmdb.APY_KEY was modified to 'APIKEY'. When trying the command the real key was assigned.
$ python Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information.