The Movie Database-støtte

Hey Guys, i checked almost all the api's, is there a way to get the directors of movies. it will be a great help if anyone can suggest me

3 svar (på side 1 av 1)

Jump to last post

Hi @KushTehlan, you can call the /credits method to get a list of the movie crew. You can of course use this with append_to_response as well.

Hi Travis.. thanks. one more query. I am using "movie" details api to get imdb_id. I am using scala and i am making my requests like this:

"val TmdbRequest: HttpResponse[String] = Http("https://api.themoviedb.org/3/movie/")
      .param("movie_id", "550" + "?")
      // .param("?","?")
      .param("api_key", "######")
      .param("language", "en-US")
      .param("append_to_response", "reviews")
      .asString"

Now the problem is of charachter "?" . i want to collect for several movie id . My problem is how do i parse "?" in query. If i do manually for every movie it works fine. i want a way so that i keep passing my movie id into this reques

Having never used Scala, I can't answer for sure but it looks like you're just building out a URL with the HttpResponse object. Something like this is what I would think would work:

val TmdbRequest: HttpResponse[String] = Http("https://api.themoviedb.org/3/movie/550")
      .param("api_key", "######")
      .param("language", "en-US")
      .param("append_to_response", "reviews")
      .asString

It looks like HttpResponse is handling building the URL for you, so you don't need to worry about ? or &.

Can't find a movie or TV show? Login to create it.

Global

s focus the search bar
p åpne profilmenyen
esc lukk et åpent vindu
? open keyboard shortcut window

On media pages

b gå tilbake (eller til foreldresiden når mulig)
e go to edit page

On TV season pages

(right arrow) go to next season
(left arrow) go to previous season

On TV episode pages

(right arrow) go to next episode
(left arrow) go to previous episode

On all image pages

a open add image window

On all edit pages

t open translation selector
ctrl+ s submit form

On discussion pages

n create new discussion
w toggle watching status
p toggle public/private
c toggle close/open
a open activity
r reply to discussion
l go to last reply
ctrl+ enter submit your message
(right arrow) next page
(left arrow) previous page

Innstillinger

Vil du vurdere eller legge til dette elementet i en liste?

Logg inn