Hi, I would like for the user on my app to be able to search for title of movie, and have all results based on what they are typing, change as they type. Any Suggestions? Somewhat new to programming. Thanks
.לא מצאת סרט או סדרה? היכנס כדי ליצור אותם
?רוצה לדרג או להוסיף פריט אל רשימה
?לא חבר אתר
תגובה מאת Philipp N.
ב-דצמבר 11, 2016 ב-4:19לפני חצות יום
Try this
https://api.themoviedb.org/3/search/company?api_key=<<api_key>>&query=QUERY&page=1
and replace with yourapi_key
andQUERY
תגובה מאת Travis Bell
ב-דצמבר 11, 2016 ב-11:49לפני חצות יום
Hi @Deekan142 All of our search methods support ngram searching. The website search for example is literally making /search/multi calls. For movies, some examples for /search/movie look like:
Cheers.
תגובה מאת Deekan142
ב-דצמבר 12, 2016 ב-10:42לפני חצות יום
Thanks for the Help, how are people organizing the Info? with a plugin? I had to use a huge algorithm to come up with just grabbing certain pieces of the string I need.
תגובה מאת Travis Bell
ב-דצמבר 12, 2016 ב-10:54לפני חצות יום
Do you mean parsing the data? If so, it's JSON. So if you use a proper JSON library and parse it with said library it's as easy as accessing a native data struct (in whatever language you're using). Here's a simple example in Ruby:
Now that I a body variable with parsed JSON, I can call it like any regular Ruby hash object: