Soporte de The Movie Database

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 respuestas (en la página 1 de 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 &.

¿No encuentras una película o serie? Inicia sesión para crearla:

Global

s centrar la barra de búsqueda
p abrir menú de perfil
esc cierra una ventana abierta
? abrir la ventana de atajos del teclado

En las páginas multimedia

b retrocede (o a padre cuando sea aplicable)
e ir a la página de edición

En las páginas de temporada de televisión

(flecha derecha) ir a la temporada siguiente
(flecha izquierda) ir a la temporada anterior

En las páginas de episodio de televisión

(flecha derecha) ir al episodio siguiente
(flecha izquierda) ir al episodio anterior

En todas las páginas de imágenes

a abrir la ventana de añadir imagen

En todas las páginas de edición

t abrir la sección de traducción
ctrl+ s enviar formulario

En las páginas de debate

n crear nuevo debate
w cambiar el estado de visualización
p cambiar público/privado
c cambiar cerrar/abrir
a abrir actividad
r responder al debate
l ir a la última respuesta
ctrl+ enter enviar tu mensaje
(flecha derecha) página siguiente
(flecha izquierda) página anterior

Configuraciones

¿Quieres puntuar o añadir este elemento a una lista?

Iniciar sesión