from urllib.request import urlopen, Request
headers = {"Accept": "application/json"}
request = Request("http://themoviedb.apiary.io/3/search/movie?api_key=###&query=juno", headers=headers)
response_body = urlopen(request).read()
print(response_body)
I get a 403 error when I try to run this. Can someone help me figure out why? I am putting my api key in.
فیلم و نمایش تلویزیونی را نمیتوانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.
آیا میخواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟
عضو نیستید؟
پاسخ توسط Travis Bell
در تاریخ مارس 12, 2014 ساعت 3:50 ب.ض
Hi Squanto1357,
I would try switching over to the production end point:
If you want to use Apiary, you have to make sure to use the private URL they give you. It's unique per Apiary account. Apiary is just a testing tool though, if you don't need it, switch to the production end point.