پشتیبانی پایگاه داده‌ فیلم

for example, when i aceess /movie/popular and click the GET button ,the right side url is like this: http://api.themoviedb.org/3/movie/popular , then i input the api key like this:

api_key : xxxxxxxx

finally,i click the "CallResource" button ,the spinner option is "production", the result is "Invalid API key", but i am sure my key is ok. when i switch the spinner option to "Mock Server", the result is ok. i don't know why?

after,i use the volley lib to access this URL in the android demo and set the header like this:

headers.put("content-type","application/json");

headers.put("api_key", Constans.API_KEY);

then also the response is "401" .

plz help me !

forgive me , my english was so bad :)

Thanks :)

3 پاسخ (در صفحه 1 از 1)

Jump to last post

what can i input in the Headers ? (apiary.io right side console)

Hi a_bin,

Apiary by default, expects the api key to be input as a header which we do not support. You will need to pass it in as a query parameter, i.e.:

https://api.themoviedb.org/3/movie/550?api_key=###

Cheers.

ok, thank u !

فیلم و نمایش تلویزیونی را نمی‌توانید پیدا کنید؟ به سیستم وارد شوید تا آن را ایجاد کنید.

Global

s تمرکز بر منوی جستجو
p منوی پروفایل باز شود
esc بستن پنجره باز
? پنجره میانبرهای صفحه‌کلید باز شود

در صفحات مدیا

b بازگشت به عقب (یا در صورت لزوم به منشا)
e برو به صفحه ویرایش

در صفحات فصل تلویزیونی

(فلش سمت راست) برو به فصل بعد
(پیکان سمت چپ) برو به نشست قبلی

در صفحات قسمت تلویزیونی

(فلش سمت راست) برو به قسمت بعد
(پیکان سمت چپ) برو به قسمت قبلی

در تمام صفحات تصویر

a پنجره افزودن تصویر باز شود

در تمام صفحات ویرایش

t انتخابگر ترجمه باز شود
ctrl+ s ثبت از

در صفحات بحث

n ایجاد بحث جدید
w تغییر وضعیت وضعیت تماشا
p تغییر وضعیت عمومی/خصوصی
c تغییر وضعیت بسته/باز
a گشایش صفحه فعالیت
r پاسخ به بحث
l برو به آخرین پاسخ
ctrl+ enter پیام خود را ثبت کنید
(فلش سمت راست) صفحه بعد
(پیکان سمت چپ) صفحه قبلی

تنظیمات

آیا می‌خواهید به این مورد امتیاز دهید یا به فهرست اضافه کنید؟

ورود